org.lastbamboo.common.sdp.fields
Class SDPFieldList

java.lang.Object
  extended by org.lastbamboo.common.sdp.GenericObject
      extended by org.lastbamboo.common.sdp.fields.SDPObject
          extended by org.lastbamboo.common.sdp.fields.SDPField
              extended by org.lastbamboo.common.sdp.fields.SDPFieldList
All Implemented Interfaces:
Serializable, Cloneable, SDPFieldNames

public abstract class SDPFieldList
extends SDPField

A list of SDP Fields.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
protected  SDPObjectList sdpFields
           
 
Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField
fieldName
 
Fields inherited from class org.lastbamboo.common.sdp.GenericObject
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
 
Fields inherited from interface org.lastbamboo.common.sdp.fields.SDPFieldNames
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 Summary
SDPFieldList()
           
SDPFieldList(String fieldName)
           
SDPFieldList(String fieldName, Class clazz)
           
 
Method Summary
 void add(SDPField h)
          add a SDP Field to the list of headers that we maintain.
 Object clone()
          Clones this object.
 String debugDump()
          convert to a string representation
 String debugDump(int indentation)
          convert to a string representation (for printing).
 String encode()
          Encode into a canonical string.
 boolean equals(Object other)
          Equality checking predicate.
 SDPObject first()
           
 ListIterator listIterator()
          Return a list iterator for the embedded field list.
 boolean match(Object template)
          Do a template match of fields.
 SDPObject next()
           
 String toString()
          Return a string representation.
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPField
getFieldName, getTypeChar
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject
dbgPrint, getStringRepresentation, initSprint, merge, replace, replace, replace, replace, sprint
 
Methods inherited from class org.lastbamboo.common.sdp.GenericObject
Assert, dbgPrint, dbgPrint, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sdpFields

protected SDPObjectList sdpFields
Constructor Detail

SDPFieldList

public SDPFieldList()

SDPFieldList

public SDPFieldList(String fieldName)

SDPFieldList

public SDPFieldList(String fieldName,
                    Class clazz)
Method Detail

listIterator

public ListIterator listIterator()
Return a list iterator for the embedded field list.


add

public void add(SDPField h)
add a SDP Field to the list of headers that we maintain.

Parameters:
h - is the sdp field to add to our list.

first

public SDPObject first()

next

public SDPObject next()

encode

public String encode()
Encode into a canonical string.

Specified by:
encode in class SDPField

debugDump

public String debugDump(int indentation)
convert to a string representation (for printing).

Overrides:
debugDump in class GenericObject
Parameters:
indentation - int to set
Returns:
String string representation of object (for printing).

debugDump

public String debugDump()
convert to a string representation

Overrides:
debugDump in class SDPObject
Returns:
String

toString

public String toString()
Return a string representation.

Overrides:
toString in class SDPField
Returns:
String representation.

equals

public boolean equals(Object other)
Equality checking predicate.

Overrides:
equals in class SDPObject
Parameters:
other - is the other object to compare ourselves against.
Returns:
true if the objects are equal.

match

public boolean match(Object template)
Do a template match of fields.

Overrides:
match in class SDPObject
Parameters:
template - is the template to match against.

clone

public Object clone()
Description copied from class: GenericObject
Clones this object.

Overrides:
clone in class GenericObject


Copyright © 2013 LittleShoot. All Rights Reserved.