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, stringRepresentationATTRIBUTE_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, sprintprotected static final String SDPFIELDS_PACKAGE
protected static final String CORE_PACKAGE
public abstract String encode()
GenericObjectencode in class GenericObjectprotected void sprint(String s)
GenericObjectsprint in class GenericObjectprotected void initSprint()
protected String getStringRepresentation()
public boolean equals(Object that)
equals in class GenericObjectthat - is the other object to test against.public String debugDump()
debugDump in class GenericObjectpublic 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 dbgPrint(int indent)
Copyright © 2014. All Rights Reserved.