org.openspml.v2.profiles.dsml
Class DSMLModification

java.lang.Object
  extended byorg.openspml.v2.profiles.dsml.NamedItem
      extended byorg.openspml.v2.profiles.dsml.DSMLAttr
          extended byorg.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

Field Summary
 
Fields inherited from class org.openspml.v2.profiles.dsml.DSMLAttr
RESERVED_TYPE_ATTR_NAME
 
Fields inherited from interface org.openspml.v2.msg.OpenContentElement
code_id
 
Constructor Summary
protected DSMLModification()
           
  DSMLModification(java.lang.String name, DSMLValue[] values, ModificationMode operation)
           
  DSMLModification(java.lang.String name, java.lang.String value, ModificationMode operation)
           
 
Method Summary
protected  void addSubclassAttributes(XmlBuffer buffer)
           
 boolean equals(java.lang.Object o)
           
 ModificationMode getOperation()
           
 int hashCode()
           
 void parseXml(DSMLUnmarshaller um, java.lang.Object xmlObj)
           
 void setOperation(ModificationMode operation)
           
 java.lang.String toXML(int indent)
          Convert this object to an XML string.
 
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
 

Constructor Detail

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
Method Detail

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.