-
- All Implemented Interfaces:
-
gov.nist.javax.sdp.fields.SDPFieldNames,java.io.Serializable,java.lang.Cloneable,javax.sdp.Attribute,javax.sdp.Field
public class CandidateAttribute extends AttributeField
-
-
Constructor Summary
Constructors Constructor Description CandidateAttribute(Candidate<out Object> candidate)Creates an attribute instance
-
Method Summary
Modifier and Type Method Description NameValuegetAttribute()StringgetName()Returns the name of this attribute voidsetName(String name)Does nothing . booleanhasValue()Always returns true as this attribute always has a value. StringgetValue()Returns the value of this attribute. voidsetValue(String value)Parses the value of this attribute. chargetTypeChar()Returns the type character for the field. CandidateAttributeclone()Returns a reference to this attribute. Stringencode()Returns the string encoded version of this object -
Methods inherited from class gov.nist.javax.sdp.fields.AttributeField
equals, hashCode, setAttribute, setValueAllowNull, toString -
Methods inherited from class gov.nist.javax.sdp.fields.SDPField
getFieldName -
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject
dbgPrint, debugDump, match -
Methods inherited from class gov.nist.core.GenericObject
encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAttribute
NameValue getAttribute()
-
hasValue
boolean hasValue()
Always returns true as this attribute always has a value.
-
setValue
void setValue(String value)
Parses the value of this attribute.
- Parameters:
value- the - attribute value
-
getTypeChar
char getTypeChar()
Returns the type character for the field.
-
clone
CandidateAttribute clone()
Returns a reference to this attribute.
-
-
-
-