org.openspml.v2.profiles.dsml
Class Modification
java.lang.Object
org.openspml.v2.profiles.dsml.NamedItem
org.openspml.v2.profiles.dsml.Attr
org.openspml.v2.profiles.dsml.DSMLAttr
org.openspml.v2.profiles.dsml.Modification
- All Implemented Interfaces:
- DSMLUnmarshaller.Parseable, OpenContentElement
- Direct Known Subclasses:
- DSMLModification
- public class Modification
- extends DSMLAttr
From the DSML spec...
<xsd:complexType name="Modification">
<xsd:sequence>
<xsd:element name="value" type="DsmlValue" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="AttributeDescriptionValue" use="required"/>
<xsd:attribute name="operation" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="add"/>
<xsd:enumeration value="delete"/>
<xsd:enumeration value="replace"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
- Author:
- Blaine Busler
Methods inherited from class org.openspml.v2.profiles.dsml.Attr |
addSubclassElements, addValue, addValues, clearValues, getName, getValues, setName, setValues, toXML, toXML, toXML, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Modification
protected Modification()
Modification
public Modification(java.lang.String name,
Value[] values,
ModificationMode operation)
throws DSMLProfileException
Modification
public Modification(java.lang.String name,
java.lang.String value,
ModificationMode operation)
throws DSMLProfileException
getOperation
public ModificationMode getOperation()
setOperation
public void setOperation(ModificationMode operation)
parseXml
public void parseXml(DSMLUnmarshaller um,
java.lang.Object xmlObj)
throws DSMLProfileException
- Specified by:
parseXml
in interface DSMLUnmarshaller.Parseable
- Overrides:
parseXml
in class Attr
- Throws:
DSMLProfileException
addSubclassAttributes
protected void addSubclassAttributes(XmlBuffer buffer)
throws DSMLProfileException
- Throws:
DSMLProfileException
toXML
public java.lang.String toXML(int indent)
throws DSMLProfileException
- Description copied from interface:
OpenContentElement
- Convert this object to an XML string.
- Specified by:
toXML
in interface OpenContentElement
- Overrides:
toXML
in class Attr
- Throws:
DSMLProfileException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class Attr
hashCode
public int hashCode()
- Overrides:
hashCode
in class Attr
Copyright © Sun Microsystems, Inc. All Rights Reserved.