Package quadbase.common.util.internal
Class XMLFieldInfo
java.lang.Object
quadbase.common.util.internal.XMLFieldInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorXMLFieldInfo(String[] path) Create a XMLFieldInfo object from path, a string arrayXMLFieldInfo(String[] path, String attrName) Create a XMLFieldInfo object from path and a specified attribute -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringfor internal use onlystatic StringcreateAttributeNameFromString(String str, String delimiter) for internal use onlystatic String[]createPathFromString(String pathStr) for internal use onlystatic String[]createPathFromString(String pathStr, String delimiter) for internal use onlystatic XMLFieldInfocreateXMLFieldInfo(DataInput in, int version) for internal use onlystatic XMLFieldInfocreateXMLFieldInfo(DataInput in, int version, boolean decode) for internal use onlybooleanequalsPath(XMLFieldInfo tmp) for internal use onlygetAlias()Return the alias of this field If no alias defined, return the path stringReturns the attribute data typeReturns the attribute nameReturns the date formatfor internal use onlystatic StringgetDisplayName(String[] path, String attrName) for internal use onlyReturns the element data typeString[]getPath()for internal use onlyfor internal use onlyintReturns the XML typebooleanfor internal use onlybooleanfor internal use onlybooleanfor internal use onlystatic XMLFieldInfofor internal use onlyvoidSets the alias of this fieldvoidsetAttributeDataType(String type) Sets the attribute data typevoidsetAttributeName(String attr) Sets the attribute namevoidsetDateFormat(String format) Sets the date formatvoidsetElementDataType(String type) Sets the element data typevoidsetIsExpandable(boolean state) for internal use onlyvoidsetIsRequired(boolean state) for internal use onlyvoidfor internal use onlyvoidsetRecursive(boolean state) for internal use onlyvoidsetXMLType(int type) Sets the xml typetoString()Returns the string representation of this fieldvoidwrite(DataOutput out) for internal use onlyvoidwrite(DataOutput out, boolean encode) for internal use onlyvoidfor internal use only
-
Field Details
-
XMLTAG
- See Also:
-
VERSION
public static final int VERSION- See Also:
-
-
Constructor Details
-
XMLFieldInfo
public XMLFieldInfo()Default constructor -
XMLFieldInfo
Create a XMLFieldInfo object from path, a string array- Parameters:
path- , a string array represents the path to this field
-
XMLFieldInfo
Create a XMLFieldInfo object from path and a specified attribute- Parameters:
path- , a string array represents the path to the elementattrName- , the attribute name
-
-
Method Details
-
equalsPath
for internal use only -
getPath
for internal use only -
setPath
for internal use only -
getDisplayName
for internal use only -
getPathToString
for internal use only -
getColumnName
-
getDisplayName
for internal use only -
createPathFromString
for internal use only -
createPathFromString
for internal use only -
createAttributeNameFromString
for internal use only -
createAttributeNameFromString
for internal use only -
getElementDataType
Returns the element data type- Returns:
- a string that represents the element data type
-
setElementDataType
Sets the element data type- Parameters:
type- a string represents the element data type
-
getAttributeDataType
Returns the attribute data type- Returns:
- a string that represents the attribute data type
-
setAttributeDataType
Sets the attribute data type- Parameters:
type- a string represents the attribute data type
-
getAttributeName
Returns the attribute name- Returns:
- a string that represents the attribute name
-
setAttributeName
Sets the attribute name- Parameters:
attr- a string represents the attribute name
-
getDateFormat
Returns the date format- Returns:
- the date format
-
setDateFormat
Sets the date format- Parameters:
the- date format
-
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
Return the alias of this field If no alias defined, return the path string -
setAlias
Sets the alias of this field- Parameters:
alias- , a string represents the alias of this field
-
write
for internal use only- Throws:
IOException
-
write
for internal use only- Throws:
IOException
-
createXMLFieldInfo
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
for internal use only- Throws:
IOException
-
readXML
for internal use only- Throws:
Exception
-
toString
Returns the string representation of this field
-