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, sprintpublic void dbgPrint()
dbgPrint in class GenericObjectpublic abstract String encode()
encode in class GenericObjectpublic StringBuilder encode(StringBuilder buffer)
encode in class GenericObjectpublic boolean equals(Object other)
equals in class GenericObjectother - the other object to test against.public boolean match(Object other)
match in class GenericObjectother - 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 GenericObjectpublic String debugDump(int indent)
debugDump in class GenericObjectindent - int to setCopyright © 2018. All Rights Reserved.