org.lastbamboo.common.sdp.fields
Class SDPField

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
All Implemented Interfaces:
Serializable, Cloneable, SDPFieldNames
Direct Known Subclasses:
AttributeField, BandwidthField, ConnectionField, EmailField, InformationField, KeyField, MediaField, OriginField, PhoneField, ProtoVersionField, RepeatField, SDPFieldList, SessionNameField, TimeField, URIField, ZoneField

public abstract class SDPField
extends SDPObject

Placeholder root class for SDP headers.

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

Field Summary
protected  String 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
  SDPField()
           
protected SDPField(String hname)
           
 
Method Summary
abstract  String encode()
          Get the string encoded version of this object
 String getFieldName()
           
 char getTypeChar()
          Returns the type character for the field.
 String toString()
           
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint
 
Methods inherited from class org.lastbamboo.common.sdp.GenericObject
Assert, clone, dbgPrint, dbgPrint, debugDump, 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

fieldName

protected String fieldName
Constructor Detail

SDPField

protected SDPField(String hname)

SDPField

public SDPField()
Method Detail

encode

public abstract String encode()
Description copied from class: GenericObject
Get the string encoded version of this object

Specified by:
encode in class SDPObject

getFieldName

public String getFieldName()

getTypeChar

public char getTypeChar()
Returns the type character for the field.

Returns:
the type character for the field.

toString

public String toString()
Overrides:
toString in class SDPObject


Copyright © 2013 LittleShoot. All Rights Reserved.