public class Attributes extends Bean
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
Attributes |
copyFrom(Attributes attributes) |
Attributes |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
Attributes |
fromXmlElement(Element element) |
String |
getName(int index) |
List<String> |
getNames() |
Object |
getValue(int index) |
Object |
getValue(String name) |
<T> T |
getValue(String name,
T defaultValue) |
Attributes |
remove(int index) |
Attributes |
remove(String name) |
Attributes |
removeAll() |
Attributes |
setValue(String name,
Object value) |
int |
size() |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
addExceptionProperties, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
public int size()
public String getName(int index)
public Object getValue(int index)
public Attributes remove(int index)
public Attributes remove(String name)
public Attributes removeAll()
public <T> T getValue(String name, T defaultValue)
public Attributes setValue(String name, Object value)
public Attributes copyFrom(Attributes attributes)
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public Attributes fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
public Attributes fromXmlElement(Element element)