Class ComplexType
- java.lang.Object
-
- com.sun.xml.rpc.processor.modeler.j2ee.xml.BaseType
-
- com.sun.xml.rpc.processor.modeler.j2ee.xml.ComplexType
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
constructorParameterOrderType,deploymentExtensionType,ejbLocalRefType,ejbRefType,emptyType,envEntryType,exceptionMappingType,extensibleType,iconType,javaWsdlMappingType,javaXmlTypeMappingType,messageDestinationRefType,messageDestinationType,methodParamPartsMappingType,packageMappingType,paramValueType,portComponentRefType,portMappingType,resourceEnvRefType,resourceRefType,runAsType,securityRoleRefType,securityRoleType,serviceEndpointInterfaceMappingType,serviceEndpointMethodMappingType,serviceInterfaceMappingType,serviceRef_handlerType,serviceRefType,string,variableMappingType,wsdlMessageMappingType,wsdlReturnValueMappingType,xsdAnyURIType,xsdBooleanType,xsdIntegerType,xsdNMTOKENType,xsdNonNegativeIntegerType,xsdPositiveIntegerType,xsdQNameType,xsdStringType
public class ComplexType extends BaseType
Base class for all generated classes that are of type Complex Type Provides operations that are applicable to complex type content. For example, element and element reference that have a sequence semantics (i.e maxOccurs=unbounded) are only applicable to the content of a complex type. Attributes can only be added to the content of a complex type.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.xml.rpc.processor.modeler.j2ee.xml.BaseType
factory, simpleDateFormat, xmlAttr, xmlElement
-
-
Constructor Summary
Constructors Constructor Description ComplexType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAttributeBooleanValue(String attrname)bytegetAttributeByteValue(String attrname)DategetAttributeDateValue(String attrname)doublegetAttributeDoubleValue(String attrname)floatgetAttributeFloatValue(String attrname)intgetAttributeIntegerValue(String attrname)longgetAttributeLongValue(String attrname)String[]getAttributeNames()shortgetAttributeShortValue(String attrname)StringgetAttributeValue(String attrname)Get the attribute value for the specified attribute nameObjectgetAttributeValue(String property, String className)booleangetElementBooleanValue(String elementName, int index)bytegetElementByteValue(String elementName, int index)DategetElementDateValue(String elementName, int index)doublegetElementDoubleValue(String elementName, int index)floatgetElementFloatValue(String elementName, int index)intgetElementIntegerValue(String elementName, int index)longgetElementLongValue(String elementName, int index)shortgetElementShortValue(String elementName, int index)booleanremoveAttribute(String attrname)Remove the attribute from this elementbooleanremoveElement(int index, String elementName)Remove the element indicated by elementName and index from the list of childrenvoidsetAttributeValue(String attrname, boolean attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, byte attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, double attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, float attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, int attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, long attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, short attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, SimpleType attrObject)Set the attribute to the specified valuevoidsetAttributeValue(String attrname, String attrvalue)Set the attribute value for the specified attribute name.voidsetAttributeValue(String attrname, Date attrObject)Set the attribute to the specified valuevoidsetElementValue(int index, String elementName, boolean value)voidsetElementValue(int index, String elementName, byte value)voidsetElementValue(int index, String elementName, double value)voidsetElementValue(int index, String elementName, float value)voidsetElementValue(int index, String elementName, int value)voidsetElementValue(int index, String elementName, long value)voidsetElementValue(int index, String elementName, short value)voidsetElementValue(int index, String elementName, BaseType baseType)Either add a new element if the index if bigger than the existing length or update the existing element at indexvoidsetElementValue(int index, String elementName, String elementValue)voidsetElementValue(int index, String elementName, Date value)-
Methods inherited from class com.sun.xml.rpc.processor.modeler.j2ee.xml.BaseType
getElementBooleanValue, getElementByteValue, getElementDateValue, getElementDoubleValue, getElementFloatValue, getElementIntegerValue, getElementLongValue, getElementName, getElementShortValue, getElementValue, getElementValue, getElementValue, getElementValue, getElementValue, getXMLAttribute, getXMLElement, removeElement, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setElementValue, setFactory, setXMLAttribute, setXMLElement, sizeOfElement, updateElementValue, updateElementValue, updateElementValue, updateElementValue, updateElementValue, updateElementValue, updateElementValue, updateElementValue, updateElementValue
-
-
-
-
Method Detail
-
removeElement
public boolean removeElement(int index, String elementName)Remove the element indicated by elementName and index from the list of children
-
setElementValue
public void setElementValue(int index, String elementName, BaseType baseType)Either add a new element if the index if bigger than the existing length or update the existing element at index
-
setElementValue
public void setElementValue(int index, String elementName, boolean value)
-
setElementValue
public void setElementValue(int index, String elementName, int value)
-
setElementValue
public void setElementValue(int index, String elementName, float value)
-
setElementValue
public void setElementValue(int index, String elementName, double value)
-
setElementValue
public void setElementValue(int index, String elementName, long value)
-
setElementValue
public void setElementValue(int index, String elementName, short value)
-
setElementValue
public void setElementValue(int index, String elementName, byte value)
-
getElementBooleanValue
public boolean getElementBooleanValue(String elementName, int index)
-
getElementIntegerValue
public int getElementIntegerValue(String elementName, int index)
-
getElementFloatValue
public float getElementFloatValue(String elementName, int index)
-
getElementDoubleValue
public double getElementDoubleValue(String elementName, int index)
-
getElementLongValue
public long getElementLongValue(String elementName, int index)
-
getElementShortValue
public short getElementShortValue(String elementName, int index)
-
getElementByteValue
public byte getElementByteValue(String elementName, int index)
-
setAttributeValue
public void setAttributeValue(String attrname, String attrvalue)
Set the attribute value for the specified attribute name.- Parameters:
attrname- - attribute nameattrvalue- - attribute value
-
setAttributeValue
public void setAttributeValue(String attrname, SimpleType attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, boolean attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, int attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, float attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, double attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, long attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, short attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, byte attrObject)
Set the attribute to the specified value
-
setAttributeValue
public void setAttributeValue(String attrname, Date attrObject)
Set the attribute to the specified value
-
getAttributeValue
public String getAttributeValue(String attrname)
Get the attribute value for the specified attribute name
-
getAttributeBooleanValue
public boolean getAttributeBooleanValue(String attrname)
-
getAttributeIntegerValue
public int getAttributeIntegerValue(String attrname)
-
getAttributeFloatValue
public float getAttributeFloatValue(String attrname)
-
getAttributeDoubleValue
public double getAttributeDoubleValue(String attrname)
-
getAttributeLongValue
public long getAttributeLongValue(String attrname)
-
getAttributeShortValue
public short getAttributeShortValue(String attrname)
-
getAttributeByteValue
public byte getAttributeByteValue(String attrname)
-
getAttributeValue
public Object getAttributeValue(String property, String className)
- Parameters:
className- - the name of the class corresponding to this element
-
removeAttribute
public boolean removeAttribute(String attrname)
Remove the attribute from this element
-
getAttributeNames
public String[] getAttributeNames()
- Returns:
- array of attribute names, or empty array if none exists
-
-