public abstract class SIPObject extends GenericObject
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
Modifier | Constructor and Description |
---|---|
protected |
SIPObject()
default Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
StringBuilder |
encode(StringBuilder buffer)
Encode the header into the given StringBuilder.
|
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() |
clone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
public void dbgPrint()
dbgPrint
in class GenericObject
public abstract String encode()
encode
in class GenericObject
public StringBuilder encode(StringBuilder buffer)
encode
in class GenericObject
public boolean equals(Object other)
equals
in class GenericObject
other
- the other object to test against.public boolean match(Object other)
match
in class 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 GenericObject
public String debugDump(int indent)
debugDump
in class GenericObject
indent
- int to setCopyright © 2015. All Rights Reserved.