org.openspml.v2.profiles.dsml
Class Modification

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

Constructor Summary
protected Modification()
           
  Modification(java.lang.String name, java.lang.String value, ModificationMode operation)
           
  Modification(java.lang.String name, Value[] values, 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.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
 

Constructor Detail

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
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 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.