NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sdp.fields
Class EmailField

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.EmailField
All Implemented Interfaces:
SDPFieldNames, Serializable, Cloneable, EMail, Field

public class EmailField
extends SDPField
implements EMail

email field in the SDP announce.

Version:
JSR141-PUBLIC-REVIEW (subject to change).
Author:
Olivier Deruelle , M. Ranganathan
See Also:
Serialized Form

Field Summary
 
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
EmailField()
           
 
Method Summary
 Object clone()
          Clones this object.
 String encode()
          Get the string encoded version of this object
 EmailAddress getEmailAddress()
           
 String getValue()
          Returns the value.
 void setEmailAddress(EmailAddress emailAddress)
          Set the emailAddress member
 void setValue(String value)
          Set the value.
 String toString()
           
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPField
getFieldName, getTypeChar
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject
dbgPrint, debugDump, equals, match
 
Methods inherited from class gov.nist.core.GenericObject
debugDump, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sdp.Field
getTypeChar
 

Constructor Detail

EmailField

public EmailField()
Method Detail

getEmailAddress

public EmailAddress getEmailAddress()

setEmailAddress

public void setEmailAddress(EmailAddress emailAddress)
Set the emailAddress member


encode

public String encode()
Get the string encoded version of this object

Specified by:
encode in class SDPField
Since:
v1.0

toString

public String toString()
Overrides:
toString in class SDPField

getValue

public String getValue()
                throws SdpParseException
Returns the value.

Specified by:
getValue in interface EMail
Returns:
the value
Throws:
SdpParseException

setValue

public void setValue(String value)
              throws SdpException
Set the value.

Specified by:
setValue in interface EMail
Parameters:
value - to set
Throws:
SdpException - if the value is null

clone

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

Specified by:
clone in interface Field
Overrides:
clone in class gov.nist.core.GenericObject
Returns:
a clone of this field.

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.