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:
  • Constructor Details

    • ComplexType

      public ComplexType()
  • Method Details

    • 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, String elementValue)
    • 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)
    • setElementValue

      public void setElementValue(int index, String elementName, Date 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)
    • getElementDateValue

      public Date getElementDateValue(String elementName, int index)
    • setAttributeValue

      public void setAttributeValue(String attrname, String attrvalue)
      Set the attribute value for the specified attribute name.
      Parameters:
      attrname - - attribute name
      attrvalue - - 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)
    • getAttributeDateValue

      public Date getAttributeDateValue(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