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

gov.nist.javax.sip.address
Class NetObject

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.address.NetObject
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AddressImpl, Authority, GenericURI, TelephoneNumber, UserInfo

public abstract class NetObject
extends gov.nist.core.GenericObject

Root object for all objects in this package.

Version:
1.2 $Revision: 1.10 $ $Date: 2009/07/17 18:57:22 $
Author:
M. Ranganathan
See Also:
Serialized Form

Constructor Summary
NetObject()
          Default constructor
 
Method Summary
 String debugDump()
          An introspection based string formatting method.
 String debugDump(int indent)
          Formatter with a given starting indentation (for nested structs).
 boolean equals(Object that)
          An introspection based equality predicate for SIPObjects.
 boolean match(Object other)
          An introspection based predicate matching using a template object.
 String toString()
          Encode this to a string.
 
Methods inherited from class gov.nist.core.GenericObject
clone, encode, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetObject

public NetObject()
Default constructor

Method Detail

equals

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

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

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.
Returns:
true if match succeeds false otherwise.

debugDump

public String debugDump()
An introspection based string formatting method. We need this because in this package (although it is an exact duplicate of the one in the superclass) because it needs to access the protected members of the other objects in this class.

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

debugDump

public String debugDump(int indent)
Formatter with a given starting indentation (for nested structs).

Overrides:
debugDump in class gov.nist.core.GenericObject
Parameters:
indent - int to set
Returns:
String

toString

public String toString()
Encode this to a string.

Overrides:
toString in class Object
Returns:
string representation for this object.

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.