Ila

org.topoweb.ila.protocol
Class POriAttr

java.lang.Object
  |
  +--org.topoweb.ila.protocol.POriAttr
All Implemented Interfaces:
ProtocolConstants

public class POriAttr
extends java.lang.Object
implements ProtocolConstants

Encapsulates the reading and writing of the "ORI" attribute.

Author:
Babak Farhang
See Also:
ProtocolConstants.PC_ORI

Field Summary
 
Fields inherited from interface org.topoweb.ila.protocol.ProtocolConstants
PC_BACKLINK_COUNT, PC_BACKLINKS, PC_CO_BACKLINK_COUNT, PC_CO_FORELINK_COUNT, PC_CONTENT_LENGTH, PC_CONTENT_TYPE, PC_ERROR_CODE, PC_EXPIRATION, PC_FAIL, PC_FIRST, PC_FORELINK_COUNT, PC_FORELINKS, PC_GET_KNOWN, PC_GET_LINK_NODE, PC_GET_LINKS, PC_GET_NODE, PC_HI, PC_HTTP, PC_ID, PC_ILA, PC_INCOMMUNICADO, PC_LAST, PC_LAST_MODIFIED, PC_LINK_NODE, PC_LINK_TYPE, PC_LO, PC_MAX_COUNT, PC_NODE, PC_NODE_SET, PC_OKAY, PC_ORI, PC_PAGE, PC_REGISTER, PC_REQUEST, PC_RESPONSE, PC_SIZE, PC_STATE, PC_STATUS, PC_SYNC_VERSION_ID, PC_SYNC_VERSION_TIMESTAMP, PC_TITLE, PC_USER, PC_USER_AGENT, PC_USER_NAMESPACE, PC_VERSION, PC_VERSION_ID, PC_VERSION_TIMESTAMP
 
Constructor Summary
POriAttr()
           
 
Method Summary
 org.topoweb.net.Ori readOri(org.w3c.dom.Element func)
          Reads and returns the "ORI" from the given element.
 void writeOri(org.topoweb.net.Ori ori, org.w3c.dom.Element func)
          Writes the given Ori value in the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POriAttr

public POriAttr()
Method Detail

writeOri

public void writeOri(org.topoweb.net.Ori ori,
                     org.w3c.dom.Element func)
Writes the given Ori value in the given element.

Parameters:
ori - the ORI
func - the element into which the attribute is written into
Throws:
java.lang.IllegalArgumentException - if page is neither FORE nor BACK

readOri

public org.topoweb.net.Ori readOri(org.w3c.dom.Element func)
                            throws IlaProtocolException
Reads and returns the "ORI" from the given element.

Parameters:
func - the element from which the "ORI" attribute will be read
Returns:
an org.topoweb.net.Ori instance
Throws:
IlaProtocolException - if there is an error

Ila

Copyright (C) 2002 Babak Farhang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.