Class XMLFieldInfo

java.lang.Object
quadbase.common.util.internal.XMLFieldInfo

public class XMLFieldInfo extends Object
  • Field Details

  • Constructor Details

    • XMLFieldInfo

      public XMLFieldInfo()
      Default constructor
    • XMLFieldInfo

      public XMLFieldInfo(String[] path)
      Create a XMLFieldInfo object from path, a string array
      Parameters:
      path - , a string array represents the path to this field
    • XMLFieldInfo

      public XMLFieldInfo(String[] path, String attrName)
      Create a XMLFieldInfo object from path and a specified attribute
      Parameters:
      path - , a string array represents the path to the element
      attrName - , the attribute name
  • Method Details

    • equalsPath

      public boolean equalsPath(XMLFieldInfo tmp)
      for internal use only
    • getPath

      public String[] getPath()
      for internal use only
    • setPath

      public void setPath(String[] path)
      for internal use only
    • getDisplayName

      public String getDisplayName()
      for internal use only
    • getPathToString

      public String getPathToString()
      for internal use only
    • getColumnName

      public String getColumnName()
    • getDisplayName

      public static String getDisplayName(String[] path, String attrName)
      for internal use only
    • createPathFromString

      public static String[] createPathFromString(String pathStr)
      for internal use only
    • createPathFromString

      public static String[] createPathFromString(String pathStr, String delimiter)
      for internal use only
    • createAttributeNameFromString

      public static String createAttributeNameFromString(String str)
      for internal use only
    • createAttributeNameFromString

      public static String createAttributeNameFromString(String str, String delimiter)
      for internal use only
    • getElementDataType

      public String getElementDataType()
      Returns the element data type
      Returns:
      a string that represents the element data type
    • setElementDataType

      public void setElementDataType(String type)
      Sets the element data type
      Parameters:
      type - a string represents the element data type
    • getAttributeDataType

      public String getAttributeDataType()
      Returns the attribute data type
      Returns:
      a string that represents the attribute data type
    • setAttributeDataType

      public void setAttributeDataType(String type)
      Sets the attribute data type
      Parameters:
      type - a string represents the attribute data type
    • getAttributeName

      public String getAttributeName()
      Returns the attribute name
      Returns:
      a string that represents the attribute name
    • setAttributeName

      public void setAttributeName(String attr)
      Sets the attribute name
      Parameters:
      attr - a string represents the attribute name
    • getDateFormat

      public String getDateFormat()
      Returns the date format
      Returns:
      the date format
    • setDateFormat

      public void setDateFormat(String format)
      Sets the date format
      Parameters:
      the - date format
    • getDataType

      public String getDataType()
    • getXMLType

      public int getXMLType()
      Returns the XML type
      Returns:
      an integer, the xml type of this field
    • setXMLType

      public void setXMLType(int type)
      Sets the xml type
      Parameters:
      type - , an integer of xml type
    • isExpandable

      public boolean isExpandable()
      for internal use only
    • setIsExpandable

      public void setIsExpandable(boolean state)
      for internal use only
    • isRequired

      public boolean isRequired()
      for internal use only
    • setIsRequired

      public void setIsRequired(boolean state)
      for internal use only
    • isRecursive

      public boolean isRecursive()
      for internal use only
    • setRecursive

      public void setRecursive(boolean state)
      for internal use only
    • getAlias

      public String getAlias()
      Return the alias of this field If no alias defined, return the path string
    • setAlias

      public void setAlias(String alias)
      Sets the alias of this field
      Parameters:
      alias - , a string represents the alias of this field
    • write

      public void write(DataOutput out) throws IOException
      for internal use only
      Throws:
      IOException
    • write

      public void write(DataOutput out, boolean encode) throws IOException
      for internal use only
      Throws:
      IOException
    • createXMLFieldInfo

      public static XMLFieldInfo createXMLFieldInfo(DataInput in, int version) throws IOException
      for internal use only
      Throws:
      IOException
    • createXMLFieldInfo

      public static XMLFieldInfo createXMLFieldInfo(DataInput in, int version, boolean decode) throws IOException
      for internal use only
      Throws:
      IOException
    • writeXML

      public void writeXML(Writer dout) throws IOException
      for internal use only
      Throws:
      IOException
    • readXML

      public static XMLFieldInfo readXML(Node dnode, int version) throws Exception
      for internal use only
      Throws:
      Exception
    • toString

      public String toString()
      Returns the string representation of this field
      Overrides:
      toString in class Object