Class BaseType
java.lang.Object
com.sun.xml.rpc.processor.modeler.j2ee.xml.BaseType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexType,SimpleType
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Factoryprotected SimpleDateFormatprotected Attrprotected Element -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetElementBooleanValue(String elementName) bytegetElementByteValue(String elementName) getElementDateValue(String elementName) Get the value for the input elementdoublegetElementDoubleValue(String elementName) floatgetElementFloatValue(String elementName) intgetElementIntegerValue(String elementName) longgetElementLongValue(String elementName) Return the node name for this elementshortgetElementShortValue(String elementName) Get the text value for this elementgetElementValue(String elementName) Get the value for the input elementgetElementValue(String property, int index) Get the element with the specifed name and at the specified locationgetElementValue(String property, String className) Get the value for the input elementgetElementValue(String property, String className, int index) Get the value for the input elementReturn the XML attribute that corresponds to this beanReturn the XML element that corresponds to this beanbooleanremoveElement(String elementName) Remove the element with the input elementName from the current nodevoidsetElementValue(String elementName, boolean value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, byte value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, double value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, float value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, int value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, long value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, short value) Create an element and set it to the specified valuevoidsetElementValue(String elementName, BaseType baseType) Create an element and set it to the specified valuevoidsetElementValue(String elementName, String elementValue) Create the element and the text node if it does not exist.voidsetElementValue(String elementName, Date value) Create an element and set it to the specified value.protected voidsetFactory(Factory factory) Remember the factory that creates this XML element or attributeprotected voidsetXMLAttribute(Attr xmlAttr) Remember the XML attribute that corresponds to this beanprotected voidsetXMLElement(Element element) Remember the XML element that corresponds to this beanintsizeOfElement(String name) Return the number of children with this namevoidupdateElementValue(boolean value) voidupdateElementValue(byte value) voidupdateElementValue(double value) voidupdateElementValue(float value) voidupdateElementValue(int value) voidupdateElementValue(long value) voidupdateElementValue(short value) voidupdateElementValue(String value) Update the text node for this elementvoidupdateElementValue(Date value)
-
Field Details
-
factory
-
xmlElement
-
xmlAttr
-
simpleDateFormat
-
-
Constructor Details
-
BaseType
public BaseType()
-
-
Method Details
-
setFactory
Remember the factory that creates this XML element or attribute -
setXMLElement
Remember the XML element that corresponds to this bean -
getXMLElement
Return the XML element that corresponds to this bean -
setXMLAttribute
Remember the XML attribute that corresponds to this bean -
getXMLAttribute
Return the XML attribute that corresponds to this bean -
setElementValue
Create the element and the text node if it does not exist. Otherwise update the text value.- Parameters:
elementName- - the name of the elementelementValue- - the value of the element
-
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value -
setElementValue
Create an element and set it to the specified value. The Date string is converted into the XML Schema date format CCYY-MM-DD. -
setElementValue
Create an element and set it to the specified value -
getElementValue
Get the text value for this element -
getElementValue
Get the element with the specifed name and at the specified location -
getElementValue
Get the value for the input element- Parameters:
elementName- The name of the element- Returns:
- String The value of the element (from the text node)
-
getElementBooleanValue
-
getElementIntegerValue
-
getElementFloatValue
-
getElementDoubleValue
-
getElementLongValue
-
getElementShortValue
-
getElementByteValue
-
getElementDateValue
Get the value for the input element- Parameters:
elementName- The name of the element- Returns:
- Date The Java Date for the element value if the value conforms to the pattern yyyy-mm-dd
-
getElementValue
Get the value for the input element- Parameters:
className- - the name of the class corresponding to this element Could be an inner class.
-
getElementValue
Get the value for the input element- Parameters:
property- - the name of the elementclassName- - the name of the class corresponding to this element Could be an inner classindex- - an index for collection
-
updateElementValue
Update the text node for this element -
updateElementValue
public void updateElementValue(boolean value) -
updateElementValue
public void updateElementValue(int value) -
updateElementValue
public void updateElementValue(float value) -
updateElementValue
public void updateElementValue(double value) -
updateElementValue
public void updateElementValue(long value) -
updateElementValue
public void updateElementValue(short value) -
updateElementValue
public void updateElementValue(byte value) -
updateElementValue
-
removeElement
Remove the element with the input elementName from the current node -
sizeOfElement
Return the number of children with this name -
getElementName
Return the node name for this element
-