Package 

Class CandidateAttribute

  • 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
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String NAME
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      NameValue getAttribute()
      String getName() Returns the name of this attribute
      void setName(String name) Does nothing .
      boolean hasValue() Always returns true as this attribute always has a value.
      String getValue() Returns the value of this attribute.
      void setValue(String value) Parses the value of this attribute.
      char getTypeChar() Returns the type character for the field.
      CandidateAttribute clone() Returns a reference to this attribute.
      String encode() 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
    • Constructor Detail

      • CandidateAttribute

        CandidateAttribute(Candidate<out Object> candidate)
        Creates an attribute instance
        Parameters:
        candidate - the Candidate
    • Method Detail

      • setName

         void setName(String name)

        Does nothing .

        Parameters:
        name - ignored.
      • 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.

      • encode

         String encode()

        Returns the string encoded version of this object