public class ComplexType extends BaseType
factory, simpleDateFormat, xmlAttr, xmlElement| Constructor and Description |
|---|
ComplexType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAttributeBooleanValue(String attrname) |
byte |
getAttributeByteValue(String attrname) |
Date |
getAttributeDateValue(String attrname) |
double |
getAttributeDoubleValue(String attrname) |
float |
getAttributeFloatValue(String attrname) |
int |
getAttributeIntegerValue(String attrname) |
long |
getAttributeLongValue(String attrname) |
String[] |
getAttributeNames() |
short |
getAttributeShortValue(String attrname) |
String |
getAttributeValue(String attrname)
Get the attribute value for the specified attribute name
|
Object |
getAttributeValue(String property,
String className) |
boolean |
getElementBooleanValue(String elementName,
int index) |
byte |
getElementByteValue(String elementName,
int index) |
Date |
getElementDateValue(String elementName,
int index) |
double |
getElementDoubleValue(String elementName,
int index) |
float |
getElementFloatValue(String elementName,
int index) |
int |
getElementIntegerValue(String elementName,
int index) |
long |
getElementLongValue(String elementName,
int index) |
short |
getElementShortValue(String elementName,
int index) |
boolean |
removeAttribute(String attrname)
Remove the attribute from this element
|
boolean |
removeElement(int index,
String elementName)
Remove the element indicated by elementName and index from the list of children
|
void |
setAttributeValue(String attrname,
boolean attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
byte attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
Date attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
double attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
float attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
int attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
long attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
short attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
SimpleType attrObject)
Set the attribute to the specified value
|
void |
setAttributeValue(String attrname,
String attrvalue)
Set the attribute value for the specified attribute name.
|
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
|
void |
setElementValue(int index,
String elementName,
boolean value) |
void |
setElementValue(int index,
String elementName,
byte value) |
void |
setElementValue(int index,
String elementName,
Date value) |
void |
setElementValue(int index,
String elementName,
double value) |
void |
setElementValue(int index,
String elementName,
float value) |
void |
setElementValue(int index,
String elementName,
int value) |
void |
setElementValue(int index,
String elementName,
long value) |
void |
setElementValue(int index,
String elementName,
short value) |
void |
setElementValue(int index,
String elementName,
String elementValue) |
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, updateElementValuepublic boolean removeElement(int index,
String elementName)
public void setElementValue(int index,
String elementName,
BaseType baseType)
public void setElementValue(int index,
String elementName,
boolean value)
public void setElementValue(int index,
String elementName,
int value)
public void setElementValue(int index,
String elementName,
float value)
public void setElementValue(int index,
String elementName,
double value)
public void setElementValue(int index,
String elementName,
long value)
public void setElementValue(int index,
String elementName,
short value)
public void setElementValue(int index,
String elementName,
byte value)
public boolean getElementBooleanValue(String elementName, int index)
public int getElementIntegerValue(String elementName, int index)
public float getElementFloatValue(String elementName, int index)
public double getElementDoubleValue(String elementName, int index)
public long getElementLongValue(String elementName, int index)
public short getElementShortValue(String elementName, int index)
public byte getElementByteValue(String elementName, int index)
public void setAttributeValue(String attrname, String attrvalue)
attrname - - attribute nameattrvalue - - attribute valuepublic void setAttributeValue(String attrname, SimpleType attrObject)
public void setAttributeValue(String attrname, boolean attrObject)
public void setAttributeValue(String attrname, int attrObject)
public void setAttributeValue(String attrname, float attrObject)
public void setAttributeValue(String attrname, double attrObject)
public void setAttributeValue(String attrname, long attrObject)
public void setAttributeValue(String attrname, short attrObject)
public void setAttributeValue(String attrname, byte attrObject)
public void setAttributeValue(String attrname, Date attrObject)
public String getAttributeValue(String attrname)
public boolean getAttributeBooleanValue(String attrname)
public int getAttributeIntegerValue(String attrname)
public float getAttributeFloatValue(String attrname)
public double getAttributeDoubleValue(String attrname)
public long getAttributeLongValue(String attrname)
public short getAttributeShortValue(String attrname)
public byte getAttributeByteValue(String attrname)
public Object getAttributeValue(String property, String className)
className - - the name of the class corresponding to this elementpublic boolean removeAttribute(String attrname)
public String[] getAttributeNames()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.