org.openspml.v2.profiles.dsml
Class DSMLModification
java.lang.Object
org.openspml.v2.profiles.dsml.NamedItem
org.openspml.v2.profiles.dsml.DSMLAttr
org.openspml.v2.profiles.dsml.DSMLModification
- All Implemented Interfaces:
- DSMLUnmarshaller.Parseable, OpenContentElement
- public class DSMLModification
- 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 and Kent Spaulding
| Methods inherited from class org.openspml.v2.profiles.dsml.DSMLAttr |
addSubclassElements, addValue, addValues, clearValues, getName, getValues, numValues, setName, setValues, toXML, toXML, toXML, toXML |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DSMLModification
protected DSMLModification()
DSMLModification
public DSMLModification(java.lang.String name,
DSMLValue[] values,
ModificationMode operation)
throws DSMLProfileException
DSMLModification
public DSMLModification(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 DSMLAttr
- 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 DSMLAttr
- Throws:
DSMLProfileException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class DSMLAttr
hashCode
public int hashCode()
- Overrides:
hashCode in class DSMLAttr
Copyright © Sun Microsystems, Inc. All Rights Reserved.