gov.nist.javax.sdp.fields
Class SDPFieldList

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sdp.fields.SDPObject
          extended by gov.nist.javax.sdp.fields.SDPField
              extended by gov.nist.javax.sdp.fields.SDPFieldList
All Implemented Interfaces:
SDPFieldNames, Serializable, Cloneable

public abstract class SDPFieldList
extends SDPField

A list of SDP Fields.

Version:
1.2
Author:
M. Ranganathan
See Also:
Serialized Form

Field Summary
protected  SDPObjectList sdpFields
           
 
Fields inherited from class gov.nist.javax.sdp.fields.SDPField
fieldName
 
Fields inherited from class gov.nist.javax.sdp.fields.SDPObject
CORE_PACKAGE, SDPFIELDS_PACKAGE
 
Fields inherited from class gov.nist.core.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
 
Fields inherited from interface gov.nist.javax.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, String classname)
           
 
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 gov.nist.javax.sdp.fields.SDPField
getFieldName, getTypeChar
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject
dbgPrint, getStringRepresentation, initSprint, sprint
 
Methods inherited from class gov.nist.core.GenericObject
dbgPrint, dbgPrint, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, 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,
                    String classname)
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 © 2012. All Rights Reserved.