public class AttributeSet extends HCIModelAdapter
attributes of an HCI object.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="attributeSet">
<xs:complexType>
<xs:sequence>
<xs:element ref="attribute" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="reference" type="xs:string"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The name of the tag element: attributeSet
|
| Constructor and Description |
|---|
AttributeSet()
Build an empty AttributeSet
|
AttributeSet(java.lang.String reference)
Build an attribute set with a reference
|
AttributeSet(java.lang.String reference,
java.util.List<Attribute> attributes)
Build an attribute set with a reference and a list of
attributes |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Attribute |
getAttribute(java.lang.String attributeName)
Gets an
attribute by its name |
java.util.List<Attribute> |
getAttributeList()
Gets the list of
attribute |
java.lang.String |
getReference()
Gets the reference of the HCI object
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
marshalpublic static final java.lang.String TAG_NAME
public AttributeSet()
public AttributeSet(java.lang.String reference)
reference - The reference(OID) of the related objectpublic AttributeSet(java.lang.String reference,
java.util.List<Attribute> attributes)
attributesreference - The reference(OID) of the related objectattributes - The list of attributespublic java.util.List<Attribute> getAttributeList()
attributeattributepublic Attribute getAttribute(java.lang.String attributeName)
attribute by its nameattribute with the name specified, or null if no such attribute existspublic java.lang.String getReference()
public void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic java.lang.String getTagName()
ITagNameProvider