Class ComplexType

    • Constructor Detail

      • ComplexType

        public ComplexType()
    • 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,
                                    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