public class CandidateAttribute
extends gov.nist.javax.sdp.fields.AttributeField
Modifier and Type | Field and Description |
---|---|
private Candidate<?> |
candidate
The Candidate that we will be encapsulating.
|
static String |
NAME
The SDP name of candidate attributes.
|
private static long |
serialVersionUID
This class's serial version uid.
|
Modifier | Constructor and Description |
---|---|
protected |
CandidateAttribute() |
|
CandidateAttribute(Candidate<?> candidate)
Creates an attribute instance
|
Modifier and Type | Method and Description |
---|---|
CandidateAttribute |
clone()
Returns a reference to this attribute.
|
String |
encode()
Returns the string encoded version of this object
|
gov.nist.core.NameValue |
getAttribute() |
String |
getName()
Returns the name of this attribute
|
char |
getTypeChar()
Returns the type character for the field.
|
String |
getValue()
Returns the value of this attribute.
|
boolean |
hasValue()
Always returns true as this attribute always has a value.
|
void |
setName(String name)
Does nothing .
|
void |
setValue(String value)
Parses the value of this attribute.
|
equals, hashCode, setAttribute, setValueAllowNull, toString
dbgPrint, debugDump, getStringRepresentation, initSprint, match, sprint
public static final String NAME
private static final long serialVersionUID
private Candidate<?> candidate
protected CandidateAttribute()
public CandidateAttribute(Candidate<?> candidate)
candidate
- the Candidatepublic gov.nist.core.NameValue getAttribute()
getAttribute
in class gov.nist.javax.sdp.fields.AttributeField
public String getName()
getName
in interface javax.sdp.Attribute
getName
in class gov.nist.javax.sdp.fields.AttributeField
public void setName(String name)
setName
in interface javax.sdp.Attribute
setName
in class gov.nist.javax.sdp.fields.AttributeField
name
- ignored.public boolean hasValue()
hasValue
in interface javax.sdp.Attribute
hasValue
in class gov.nist.javax.sdp.fields.AttributeField
public String getValue()
getValue
in interface javax.sdp.Attribute
getValue
in class gov.nist.javax.sdp.fields.AttributeField
public void setValue(String value) throws javax.sdp.SdpException
setValue
in interface javax.sdp.Attribute
setValue
in class gov.nist.javax.sdp.fields.AttributeField
value
- the - attribute valuejavax.sdp.SdpException
- if there's a problem with the value
String.public char getTypeChar()
getTypeChar
in interface javax.sdp.Field
getTypeChar
in class gov.nist.javax.sdp.fields.SDPField
public CandidateAttribute clone()
clone
in interface javax.sdp.Field
clone
in class gov.nist.javax.sdp.fields.AttributeField
public String encode()
encode
in class gov.nist.javax.sdp.fields.AttributeField
Copyright © 2018. All rights reserved.