Class TagXML

  • All Implemented Interfaces:
    java.io.Serializable

    public class TagXML
    extends java.lang.Object
    implements java.io.Serializable
    Simplicité XML tag manager
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TagXML()
      Default contructor
      TagXML​(java.lang.String tag, java.lang.String value)
      Constructor
      TagXML​(java.lang.String tag, java.lang.String value, boolean cdata)
      Constructor
      TagXML​(java.lang.String tag, java.lang.String value, boolean fkey, java.lang.String oldvalue, int type, java.lang.String doc, java.lang.String docmap, java.lang.String dispValue, java.lang.String dispOldValue, java.lang.String disp)
      Constructor
      TagXML​(java.lang.String tag, java.lang.String value, ObjectXML object, boolean fkey, ObjectXML oldObject)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDisplay()
      Get display label
      java.lang.String getDisplayOldValue()
      Get display old value
      java.lang.String getDisplayValue()
      Get display value
      java.lang.String getDoc()
      Get document path or inlined data
      java.lang.String getDocMap()
      Get document mapping
      ObjectXML getObject()
      Get XML object
      ObjectXML getOldObject()
      Get old XML object
      java.lang.String getOldValue()
      Get old value
      java.lang.String getTag()
      Get tag
      int getType()
      Get type
      java.lang.String getValue()
      Get value
      boolean isDocument()
      Is document?
      boolean isFunctKey()
      Is functional key?
      boolean isObject()
      Is object type?
      void setDoc​(java.lang.String doc)
      Set document path or inlined data
      void setDocMap​(java.lang.String docmap)
      Set document mapping
      void setFunctKey​(boolean key)
      Set functional key
      void setObject​(ObjectXML obj)
      Set XML object
      void setOldObject​(ObjectXML old)
      Set old XML object
      void setOldValue​(boolean value)
      Set old value
      void setOldValue​(char value)
      Set old value
      void setOldValue​(double value)
      Set old value
      void setOldValue​(float value)
      Set old value
      void setOldValue​(int value)
      Set old value
      void setOldValue​(long value)
      Set old value
      void setOldValue​(java.lang.Object value)
      Set old value
      void setOldValue​(java.lang.String value)
      Set old value
      void setOldValue​(java.lang.String[] values)
      Set old value
      void setOldValue​(java.lang.StringBuilder value)
      Set old value
      void setOldValue​(java.util.Date value)
      Set old value
      void setTag​(java.lang.String tag)
      Set tag
      void setType​(int type)
      Set type
      void setValue​(boolean value)
      Set value
      void setValue​(char value)
      Set value
      void setValue​(double value)
      Set value
      void setValue​(float value)
      Set value
      void setValue​(int value)
      Set value
      void setValue​(long value)
      Set value
      void setValue​(java.lang.Object value)
      Set value
      void setValue​(java.lang.String value)
      Set value
      void setValue​(java.lang.String[] values)
      Set value
      void setValue​(java.lang.StringBuilder value)
      Set value
      void setValue​(java.util.Date value)
      Set value
      java.lang.String toJSON()
      Serialize as JSON string
      java.lang.String toString()
      Serialize as XML string
      java.lang.StringBuilder toXML()
      Serialize as XML string builder
      java.lang.StringBuilder toXML​(java.lang.String tab, java.lang.String spacer)
      Serialize as XML string builder
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TagXML

        public TagXML()
        Default contructor
      • TagXML

        public TagXML​(java.lang.String tag,
                      java.lang.String value)
        Constructor
        Parameters:
        tag - Tag name
        value - Value
      • TagXML

        public TagXML​(java.lang.String tag,
                      java.lang.String value,
                      boolean cdata)
        Constructor
        Parameters:
        tag - Tag name
        value - Value
        cdata - Enclose value in CDATA
      • TagXML

        public TagXML​(java.lang.String tag,
                      java.lang.String value,
                      boolean fkey,
                      java.lang.String oldvalue,
                      int type,
                      java.lang.String doc,
                      java.lang.String docmap,
                      java.lang.String dispValue,
                      java.lang.String dispOldValue,
                      java.lang.String disp)
        Constructor
        Parameters:
        tag - Tag name
        value - Value
        fkey - Belongs to functional key ?
        oldvalue - Old value
        type - Tag data type
        doc - Optional path/blob of the joined doc
        docmap - Optional mapped path of the joined doc
        dispValue - Optional value to display
        disp - Optional tag display
      • TagXML

        public TagXML​(java.lang.String tag,
                      java.lang.String value,
                      ObjectXML object,
                      boolean fkey,
                      ObjectXML oldObject)
        Constructor
        Parameters:
        tag - Tag name
        value - Value
        object - Meta-object
        fkey - Belongs to functional key ?
        oldObject - Old meta-object
    • Method Detail

      • getTag

        public java.lang.String getTag()
        Get tag
        Returns:
        Tag
      • setTag

        public void setTag​(java.lang.String tag)
        Set tag
        Parameters:
        tag - Tag
      • getType

        public int getType()
        Get type
        Returns:
        Type
      • setType

        public void setType​(int type)
        Set type
        Parameters:
        type - Type
      • getDisplay

        public java.lang.String getDisplay()
        Get display label
        Returns:
        Display label
      • getValue

        public java.lang.String getValue()
        Get value
        Returns:
        Value
      • setValue

        public void setValue​(java.lang.String value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(char value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(java.lang.StringBuilder value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(boolean value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(int value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(long value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(float value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(double value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(java.util.Date value)
        Set value
        Parameters:
        value - Value
      • setValue

        public void setValue​(java.lang.String[] values)
        Set value
        Parameters:
        values - Values
      • setValue

        public void setValue​(java.lang.Object value)
        Set value
        Parameters:
        value - Value
      • getDisplayValue

        public java.lang.String getDisplayValue()
        Get display value
        Returns:
        Display value
      • getOldValue

        public java.lang.String getOldValue()
        Get old value
        Returns:
        Old value
      • setOldValue

        public void setOldValue​(java.lang.String value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(char value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(java.lang.StringBuilder value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(boolean value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(int value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(long value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(float value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(double value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(java.util.Date value)
        Set old value
        Parameters:
        value - Old value
      • setOldValue

        public void setOldValue​(java.lang.String[] values)
        Set old value
        Parameters:
        values - Old values
      • setOldValue

        public void setOldValue​(java.lang.Object value)
        Set old value
        Parameters:
        value - Old value
      • getDisplayOldValue

        public java.lang.String getDisplayOldValue()
        Get display old value
        Returns:
        Display old value
      • isFunctKey

        public boolean isFunctKey()
        Is functional key?
        Returns:
        True if functional key
      • setFunctKey

        public void setFunctKey​(boolean key)
        Set functional key
        Parameters:
        key - Functional key?
      • getDoc

        public java.lang.String getDoc()
        Get document path or inlined data
        Returns:
        Document path or inlined data
      • setDoc

        public void setDoc​(java.lang.String doc)
        Set document path or inlined data
        Parameters:
        doc -
      • getDocMap

        public java.lang.String getDocMap()
        Get document mapping
        Returns:
        Document mapping
      • setDocMap

        public void setDocMap​(java.lang.String docmap)
        Set document mapping
        Parameters:
        docmap - Document mapping
      • isDocument

        public boolean isDocument()
        Is document?
        Returns:
        True if document
      • getObject

        public ObjectXML getObject()
        Get XML object
        Returns:
        XML object
      • setObject

        public void setObject​(ObjectXML obj)
        Set XML object
        Parameters:
        obj - XML object
      • getOldObject

        public ObjectXML getOldObject()
        Get old XML object
        Returns:
        Old XML object
      • setOldObject

        public void setOldObject​(ObjectXML old)
        Set old XML object
        Parameters:
        old - Old XML object
      • isObject

        public boolean isObject()
        Is object type?
        Returns:
        True if object type?
      • toString

        public java.lang.String toString()
        Serialize as XML string
        Overrides:
        toString in class java.lang.Object
        Returns:
        XML string
      • toXML

        public java.lang.StringBuilder toXML()
        Serialize as XML string builder
        Returns:
        XML string builder
      • toXML

        public java.lang.StringBuilder toXML​(java.lang.String tab,
                                             java.lang.String spacer)
        Serialize as XML string builder
        Parameters:
        tab - Tabulation
        spacer - Spacer
        Returns:
        XML string builder
      • toJSON

        public java.lang.String toJSON()
        Serialize as JSON string
        Returns:
        JSON string