org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry Class Reference

List of all members.

Public Member Functions

 ForwardingEntry (ContentName prefixName, Integer faceID, Integer flags)
 ForwardingEntry (ActionType action, ContentName prefixName, PublisherPublicKeyDigest ccndId, Integer faceID, Integer flags, Integer lifetime)
 ForwardingEntry (byte[] raw)
ContentName getPrefixName ()
Integer getFaceID ()
void setFaceID (Integer faceID)
String action ()
PublisherPublicKeyDigest getccndId ()
void setccndId (PublisherPublicKeyDigest id)
Integer getLifetime ()
String toFormattedString ()
boolean validateAction (String action)
void decode (XMLDecoder decoder) throws ContentDecodingException
 Used by NetworkObject to decode the object from a network stream.
void encode (XMLEncoder encoder) throws ContentEncodingException
 Used by NetworkObject to encode the object to a network stream.
long getElementLabel ()
 Allow the encoder/decoder to retrieve the top-level element name programmatically.
boolean validate ()
 Make sure all of the necessary fields are filled in prior to attempting to encode.
int hashCode ()
boolean equals (Object obj)

Protected Attributes

String _action
 From the XML definitions: <xs:element name="ForwardingEntry" type="ForwardingEntryType"/> <xs:complexType name="ForwardingEntryType"> <xs:sequence> <xs:element name="Action" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="Name" type="NameType" minOccurs="0" maxOccurs="1"/> <xs:element name="PublisherPublicKeyDigest" type="DigestType" minOccurs="0" maxOccurs="1"/> <xs:element name="FaceID" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> <xs:element name="ForwardingFlags" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> <xs:element name="FreshnessSeconds" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType>
ContentName _prefixName
PublisherPublicKeyDigest _ccndId
Integer _faceID
Integer _flags
Integer _lifetime

Member Function Documentation

void org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.decode ( XMLDecoder  decoder  )  throws ContentDecodingException [virtual]

Used by NetworkObject to decode the object from a network stream.

See also:
org.ccnx.ccn.impl.encoding.XMLEncodable

Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.

void org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.encode ( XMLEncoder  encoder  )  throws ContentEncodingException [virtual]

Used by NetworkObject to encode the object to a network stream.

See also:
org.ccnx.ccn.impl.encoding.XMLEncodable

Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.

long org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.getElementLabel (  )  [virtual]

Allow the encoder/decoder to retrieve the top-level element name programmatically.

This allows subclasses to rename elements without changing their encoder/decoders.

Returns:
the element label to use, as a key in a loaded encoding dictionary

Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.

Integer org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.getLifetime (  ) 
Returns:
lifetime of registration in seconds
boolean org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.validate (  )  [virtual]

Make sure all of the necessary fields are filled in prior to attempting to encode.

All implementations of encode(XMLEncoder) should call this for their classes prior to encoding.

Returns:
true if object is valid and can be encoded, false if there is a problem; for example mandatory fields are uninitialized

Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.


The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:47 2011 for Content-Centric Networking in Java by  doxygen 1.6.3