NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sdp.fields
Class SDPObject

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sdp.fields.SDPObject
All Implemented Interfaces:
SDPFieldNames, Serializable, Cloneable
Direct Known Subclasses:
ConnectionAddress, Email, EmailAddress, SDPField, SDPFormat, TypedTime, ZoneAdjustment

public abstract class SDPObject
extends gov.nist.core.GenericObject
implements SDPFieldNames

Root class for everything in this package.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface gov.nist.javax.sdp.fields.SDPFieldNames
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
 
Constructor Summary
SDPObject()
           
 
Method Summary
 String dbgPrint(int indent)
          Formatter with a given starting indentation.
 String debugDump()
          Generic introspection based printing funciton for this package.
abstract  String encode()
          Get the string encoded version of this object
 boolean equals(Object that)
          An introspection based equality predicate for SDPObjects.
 boolean match(Object other)
          An introspection based predicate matching using a template object.
 String toString()
           
 
Methods inherited from class gov.nist.core.GenericObject
clone, debugDump, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDPObject

public SDPObject()
Method Detail

encode

public abstract String encode()
Description copied from class: gov.nist.core.GenericObject
Get the string encoded version of this object

Specified by:
encode in class gov.nist.core.GenericObject

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object that)
An introspection based equality predicate for SDPObjects.

Overrides:
equals in class gov.nist.core.GenericObject
Parameters:
that - is the other object to test against.
Returns:
true if the objects are equal.

debugDump

public String debugDump()
Generic introspection based printing funciton for this package. Because we use introspection, this must reside in this package and we cannot use the superclass defintion (even though it is virtually identical.

Overrides:
debugDump in class gov.nist.core.GenericObject

match

public boolean match(Object other)
An introspection based predicate matching using a template object. Allows for partial match of two protocl Objects.

Overrides:
match in class gov.nist.core.GenericObject
Parameters:
other - the match pattern to test against. The match object has to be of the same type (class). Primitive types and non-sip fields that are non null are matched for equality. Null in any field matches anything. Some book-keeping fields are ignored when making the comparison.

dbgPrint

public String dbgPrint(int indent)
Formatter with a given starting indentation.


NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.