Package wt.ixb.impl.jaxb
Class IxbJaxbElement
java.lang.Object
wt.ixb.impl.jaxb.IxbJaxbElement
- All Implemented Interfaces:
IxbElement
- Direct Known Subclasses:
IxbJaxbDocElement
This class use JAXB Object to store attributes and elements It uses JAXBUtil class to set/get value of JAXB object
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, String value) add Attribute to current element
Supported API: trueaddCDataSectionValue(String key, String value) add CDataSection Value to current element, not supported no
Supported API: trueaddElement(String key) add element to current JAXB Object, may be multiple
Supported API: truevoidaddElement(IxbElement el) add given IxbElement as child element Currenty it isn't be called by outer directly, because we didn't need to initialize a JAXBElement
Supported API: truevoidMakes foreign elem native by copy - i.e.add boolean value
Supported API: trueadd double value
Supported API: trueadd int value
Supported API: trueadd long value
Supported API: trueadd String value
Supported API: truegetAttribute(String tag) get attribute for give tag
Supported API: trueget all mapped attribute values
Supported API: trueReturns Hashtable of pairs: (attrName, attrValue)
Supported API: truegetBooleanValue(String tag) get boolean value
Supported API: trueget the value of children
Supported API: trueget the value of childrenMap
Supported API: truegetDoubleValue(String tag) get Double value
Supported API: truegetElement(String tag) get first element by give tag name
Supported API: trueget all Elements
Supported API: truegetElements(String tag) get all the elements by tag name
Supported API: trueget the value of plcsValueMap
Supported API: trueget the value of foreignMap
Supported API: truegetIntValue(String tag) get int value
Supported API: truegetKeys()get attributes keys
Supported API: truegetLongValue(String tag) get long value
Supported API: trueget parent element
Supported API: trueget the value of rootObject
Supported API: trueget the value of schemaType
Supported API: trueget the value of subForeignMap
Supported API: truegetTag()get tag name
Supported API: trueget the value of tagQName
Supported API: truegetValue()get value of element, only support when the root object value is string type.get value from current JAXB Element
Supported API: trueget values by tag
Supported API: truebooleanisCDATASectionElement
Supported API: truebooleanisCommentElement
Supported API: truebooleanget the value of multiple
Supported API: truebooleanget the value of needSchemaCheck
Supported API: truebooleanisTextElement
Supported API: truevoidremove child element from current one
Supported API: truevoidsetMultiple(boolean multiple) set the value of multiple
Supported API: truevoidsetNeedSchemaCheck(boolean needSchemaCheck) set the value of needSchemaCheck
Supported API: trueset value to current element
Supported API: truestore current element into a file
Supported API: truevoidstore(OutputStream os, String dtdName) store current element into an OutputStream
Supported API: truestore current element as a string
Supported API: true
-
Method Details
-
addAttribute
add Attribute to current element
Supported API: true- Specified by:
addAttributein interfaceIxbElement- Parameters:
name-value-- Throws:
WTException
-
addCDataSectionValue
add CDataSection Value to current element, not supported no
Supported API: true- Specified by:
addCDataSectionValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
addElement
add element to current JAXB Object, may be multiple
Supported API: true- Specified by:
addElementin interfaceIxbElement- Parameters:
key-- Returns:
- IxbElement
- Throws:
WTException
-
addElement
add given IxbElement as child element Currenty it isn't be called by outer directly, because we didn't need to initialize a JAXBElement
Supported API: true- Specified by:
addElementin interfaceIxbElement- Parameters:
el-- Throws:
WTException
-
addForeignElementByCopy
Makes foreign elem native by copy - i.e. by importNode()
Supported API: true- Specified by:
addForeignElementByCopyin interfaceIxbElement- Parameters:
el-- Throws:
WTException
-
addValue
add String value
Supported API: true- Specified by:
addValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
addValue
add int value
Supported API: true- Specified by:
addValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
addValue
add long value
Supported API: true- Specified by:
addValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
addValue
add boolean value
Supported API: true- Specified by:
addValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
addValue
add double value
Supported API: true- Specified by:
addValuein interfaceIxbElement- Parameters:
key-value-- Returns:
- IxbElement
- Throws:
WTException
-
getAttribute
get attribute for give tag
Supported API: true- Specified by:
getAttributein interfaceIxbElement- Parameters:
tag-- Returns:
- String
- Throws:
WTException
-
getAttributeValuePairs
Returns Hashtable of pairs: (attrName, attrValue)
Supported API: true- Specified by:
getAttributeValuePairsin interfaceIxbElement- Returns:
- Hashtable
- Throws:
WTException
-
getAttributes
get all mapped attribute values
Supported API: true- Specified by:
getAttributesin interfaceIxbElement- Returns:
- Enumeration
- Throws:
WTException
-
getBooleanValue
get boolean value
Supported API: true- Specified by:
getBooleanValuein interfaceIxbElement- Parameters:
tag-- Returns:
- Boolean
- Throws:
WTException
-
getDoubleValue
get Double value
Supported API: true- Specified by:
getDoubleValuein interfaceIxbElement- Parameters:
tag-- Returns:
- Double
- Throws:
WTException
-
getElement
get first element by give tag name
Supported API: true- Specified by:
getElementin interfaceIxbElement- Parameters:
tag-- Returns:
- IxbElement
- Throws:
WTException
-
getElements
get all Elements
Supported API: true- Specified by:
getElementsin interfaceIxbElement- Returns:
- Enumeration
- Throws:
WTException
-
getElements
get all the elements by tag name
Supported API: true- Specified by:
getElementsin interfaceIxbElement- Returns:
- Enumeration
- Throws:
WTException
-
getIntValue
get int value
Supported API: true- Specified by:
getIntValuein interfaceIxbElement- Parameters:
tag-- Returns:
- Integer
- Throws:
WTException
-
getKeys
get attributes keys
Supported API: true- Specified by:
getKeysin interfaceIxbElement- Returns:
- Iterator
- Throws:
WTException
-
getLongValue
get long value
Supported API: true- Specified by:
getLongValuein interfaceIxbElement- Parameters:
tag-- Returns:
- Long
- Throws:
WTException
-
getParent
get parent element
Supported API: true- Specified by:
getParentin interfaceIxbElement- Returns:
- String
- Throws:
WTException
-
getTag
get tag name
Supported API: true- Specified by:
getTagin interfaceIxbElement- Returns:
- String
- Throws:
WTException
-
getValue
get value of element, only support when the root object value is string type.
Supported API: true- Specified by:
getValuein interfaceIxbElement- Returns:
- String
- Throws:
WTException
-
getValue
get value from current JAXB Element
Supported API: true- Specified by:
getValuein interfaceIxbElement- Parameters:
tag-- Returns:
- String
- Throws:
WTException
-
getValues
get values by tag
Supported API: true- Specified by:
getValuesin interfaceIxbElement- Parameters:
tag-- Returns:
- Enumeration
- Throws:
WTException
-
isCDATASectionElement
isCDATASectionElement
Supported API: true- Specified by:
isCDATASectionElementin interfaceIxbElement- Returns:
- boolean
- Throws:
WTException
-
isCommentElement
isCommentElement
Supported API: true- Specified by:
isCommentElementin interfaceIxbElement- Returns:
- boolean
- Throws:
WTException
-
isTextElement
isTextElement
Supported API: true- Specified by:
isTextElementin interfaceIxbElement- Returns:
- boolean
- Throws:
WTException
-
removeChildElement
remove child element from current one
Supported API: true- Specified by:
removeChildElementin interfaceIxbElement- Parameters:
el-- Throws:
WTException
-
setValue
set value to current element
Supported API: true- Specified by:
setValuein interfaceIxbElement- Parameters:
key-newValue-- Returns:
- IxbElement
- Throws:
WTException
-
store
store current element as a string
Supported API: true- Specified by:
storein interfaceIxbElement- Parameters:
dtdName-- Returns:
- String
- Throws:
WTException
-
store
store current element into an OutputStream
Supported API: true- Specified by:
storein interfaceIxbElement- Parameters:
os-dtdName-- Throws:
WTException
-
store
store current element into a file
Supported API: true- Specified by:
storein interfaceIxbElement- Parameters:
xmlFile-dtdName-- Returns:
- File
- Throws:
WTException
-
getRootObject
get the value of rootObject
Supported API: true- Returns:
- rootObject
-
getTagQName
get the value of tagQName
Supported API: true- Returns:
- tagQName
-
setNeedSchemaCheck
public void setNeedSchemaCheck(boolean needSchemaCheck) set the value of needSchemaCheck
Supported API: true- Parameters:
needSchemaCheck-
-
getChildren
get the value of children
Supported API: true- Returns:
- children
-
setMultiple
public void setMultiple(boolean multiple) set the value of multiple
Supported API: true- Parameters:
multiple-
-
isNeedSchemaCheck
public boolean isNeedSchemaCheck()get the value of needSchemaCheck
Supported API: true- Returns:
- needSchemaCheck
-
getForeignMap
get the value of foreignMap
Supported API: true- Returns:
- foreignMap
-
isMultiple
public boolean isMultiple()get the value of multiple
Supported API: true- Returns:
- multiple
-
getSubForeignMap
get the value of subForeignMap
Supported API: true- Returns:
- subForeignMap
-
getChildrenMap
get the value of childrenMap
Supported API: true- Returns:
- childrenMap
-
getElementValueMap
get the value of plcsValueMap
Supported API: true- Returns:
- plcsValueMap
-
getSchemaType
get the value of schemaType
Supported API: true- Returns:
- plcsValueMap
-