|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
public abstract class SIPObject
Root class for all singleton objects in this package: specializes the gov.nist.sip.header.GenericObject class for SIPHeader related objects.
Method Summary | |
---|---|
void |
dbgPrint()
Debug function |
String |
debugDump()
An introspection based string formatting method. |
String |
debugDump(int indent)
Formatter with a given starting indentation (for nested structs). |
abstract String |
encode()
Encode the header into a String. |
StringBuffer |
encode(StringBuffer buffer)
Encode the header into the given StringBuffer. |
boolean |
equals(Object other)
An introspection based equality predicate for SIPObjects. |
boolean |
match(Object other)
An introspection based predicate matching using a template object. |
String |
toString()
|
Methods inherited from class gov.nist.core.GenericObject |
---|
clone, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void dbgPrint()
dbgPrint
in class gov.nist.core.GenericObject
public abstract String encode()
encode
in class gov.nist.core.GenericObject
public StringBuffer encode(StringBuffer buffer)
encode
in class gov.nist.core.GenericObject
public boolean equals(Object other)
equals
in class gov.nist.core.GenericObject
other
- the other object to test against.
public boolean match(Object other)
match
in class gov.nist.core.GenericObject
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.public String debugDump()
debugDump
in class gov.nist.core.GenericObject
public String debugDump(int indent)
debugDump
in class gov.nist.core.GenericObject
indent
- int to set
public String toString()
toString
in class Object
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |