Class UnknownTag

  • All Implemented Interfaces:
    de.jnkconsulting.e3dc.easyrscp.api.frame.Tag

    
    public final class UnknownTag
     implements Tag
                        

    Auxiliary class to represent unknown Tags that were not known at compile time but can still be sent and received

    The namespace is tried to be determined. If this is also unknown, Namespace.UNKNOWN is always returned for the namespace property. For the type property, DataType.UNKNOWN is always supplied. The fixed string UNKNWON is supplied as name.

    Since:

    2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Namespace getNamespace() Namespace defined by E3DC in which this tag is used.
      DataType getType() Data type used in the context of this tag in a Data block.
      String getName() Human-readable name of the tag.
      String getHex() Encoding of the tag in hex string format with 0x as prefix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnknownTag

        UnknownTag(String hex)
    • Method Detail

      • getName

         String getName()

        Human-readable name of the tag. Defined by E3DC.

        The name corresponds to the E3DC definition WITHOUT the prefix TAG_ and WITHOUT the namespace abbreviation, since these two pieces of information are already apparent from the context

      • getHex

         String getHex()

        Encoding of the tag in hex string format with 0x as prefix. For example 0x03040000