public abstract class SDPObject extends GenericObject implements SDPFieldNames
Modifier and Type | Field and Description |
---|---|
protected static String |
CORE_PACKAGE |
protected static String |
SDPFIELDS_PACKAGE |
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
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 and Description |
---|
SDPObject() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String |
getStringRepresentation() |
protected void |
initSprint() |
boolean |
match(Object other)
An introspection based predicate matching using a template
object.
|
protected void |
sprint(String s)
Add a new string to the accumulated string representation.
|
String |
toString() |
clone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected static final String SDPFIELDS_PACKAGE
protected static final String CORE_PACKAGE
public abstract String encode()
GenericObject
encode
in class GenericObject
protected void sprint(String s)
GenericObject
sprint
in class GenericObject
protected void initSprint()
protected String getStringRepresentation()
public boolean equals(Object that)
equals
in class GenericObject
that
- is the other object to test against.public String debugDump()
debugDump
in class GenericObject
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 dbgPrint(int indent)
Copyright © 2016. All Rights Reserved.