es.rickyepoderi.wbxml.definition

? WbXmlExtensionDef

  • ????????:
    Comparable<WbXmlExtensionDef>


    public class WbXmlExtensionDefextends Objectimplements Comparable<WbXmlExtensionDef>

    A extension in the WBXML specification is any string that can be used inside attribute values and tag PCDATA to compact the value. For example if a extension is defined for "ENABLED" and attribute value status="ENABLED" can be compacted for the extension and if the value is status="PARTIALLYENABLED" the value is partially substituted (PARTIALLY and the extension). In the definition the extension is just a mb_u_int32 token which represents a string value. In the specification extensions are explained in chapter 5.8.4.2. Global Extension Tokens. There there are three types of extensions but only the EXT_T is used.

    In the properties file any extension is defined by two keys, the first one assigns the integer id and the second the value:

    • wbxml.ext.{key_differenciator}={token}
    • {previous_key}.value={value}
    TODO: libwbxml defines an extension as a unsigned byte (255), nevertheless the WBXML format assigns a mb_u_int32... Take care!
    ??:
    ricky
    • ???????

      • WbXmlExtensionDef

        protected WbXmlExtensionDef(String value,                            byte token)
        Constructor via value and token.
        ??:
        value - The value string
        token - The token id
    • ??????

      • getValue

        public String getValue()
        getter for the value
        ??:
        The value for the extension definition
      • setValue

        protected void setValue(String value)
        Setter for the value
        ??:
        value - The new value
      • getToken

        public byte getToken()
        Getter for the token id
        ??:
        The token
      • setToken

        protected void setToken(byte token)
        Setter for the token
        ??:
        token - The token
      • compareTo

        public int compareTo(WbXmlExtensionDef ext)
        Comparable method that first check lengths and then normal lexicographic order. This way larger extensions are checked first in compactation methods.
        ???:
        compareTo ???? Comparable<WbXmlExtensionDef>
        ??:
        ext - The extension to compare
        ??:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      • toString

        public String toString()
        String representation of the extension.
        ??:
        toString ??? Object
        ??:
        The string representation

Copyright © 2019. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14