public class AttributeStatement extends AttributeContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AttributeStatement_java_copyright |
static java.lang.String |
AttributeStatement_java_sourceCodeID |
AttributeContainer_java_copyright, AttributeContainer_java_sourceCodeID
Constructor and Description |
---|
AttributeStatement()
Construct an empty AttributeStatement
|
AttributeStatement(Attribute[] attributes)
Construct an AttributeStatement with an array of Attributes
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attr)
Adds the given Attribute to the list of attributes.
|
static AttributeStatement |
fromXml(org.w3c.dom.Element element)
Converts XML (in the form of an org.w3c.dom.Element object) into an
AttributeStatement.
|
java.lang.String |
getId()
Returns the id of this AttributeStatement.
|
Subject |
getSubject()
getSubject
Retrieves the optional Subject for this AttributeStatement or null
|
void |
setId(java.lang.String id)
Sets the id of this AttributeStatement.
|
void |
setSubject(Subject subj)
setSubject Sets the Subject for this AttributeStatement.
|
attributesFromXml, clear, getAttributeByName, getAttributeByNameAndType, getAttributeIterator, getAttributes, getAttributesByType, getAttributeValueByName, getAttributeValueByNameAndType, getAttributeValuesByName, getAttributeValuesByNameAndType, getNumberOfAttributes, removeAttribute, removeAttributeByNameAndType, removeAttributes, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, toXml
public static final java.lang.String AttributeStatement_java_sourceCodeID
public static final java.lang.String AttributeStatement_java_copyright
public AttributeStatement()
public AttributeStatement(Attribute[] attributes)
attributes
- ana array of Attributes for this AttributeStatement.public static AttributeStatement fromXml(org.w3c.dom.Element element)
element
- the org.w3c.dom.Element from which an AttributeStatement will
be created.public Subject getSubject()
public void setSubject(Subject subj)
subj
- the Subject for this AttributeStatement.public void addAttribute(Attribute attr)
attr
- Attribute to add to the list of attributes.public final java.lang.String getId()
public final void setId(java.lang.String id)
id
- the id of this AttributeStatement.