org.openspml.v2.profiles.dsml
Class DSMLAttr

java.lang.Object
  extended byorg.openspml.v2.profiles.dsml.NamedItem
      extended byorg.openspml.v2.profiles.dsml.DSMLAttr
All Implemented Interfaces:
DSMLUnmarshaller.Parseable, OpenContentElement
Direct Known Subclasses:
DSMLModification

public class DSMLAttr
extends org.openspml.v2.profiles.dsml.NamedItem
implements DSMLUnmarshaller.Parseable, OpenContentElement

From the DSML spec...

 <complexType name="Attr">
 <sequence>
 <element name="value" type="Value" minOccurs="0" maxOccurs="unbounded"/>
 </sequence>
 <attribute name="name" type="AttributeDescriptionValue" use="required"/>
 </complexType>
 

Author:
Blaine Busler and Kent Spaulding

Field Summary
static java.lang.String RESERVED_TYPE_ATTR_NAME
          The profile specifies that an attr with the name is reserved and provides the name of the objectclass for a given set of attributes.
 
Fields inherited from interface org.openspml.v2.msg.OpenContentElement
code_id
 
Constructor Summary
protected DSMLAttr()
           
  DSMLAttr(java.lang.String name, DSMLValue[] values)
           
  DSMLAttr(java.lang.String name, java.lang.String value)
           
 
Method Summary
protected  void addSubclassAttributes(XmlBuffer buffer)
           
protected  void addSubclassElements(XmlBuffer buffer)
           
 void addValue(DSMLValue value)
           
 void addValues(DSMLValue[] values)
           
 void clearValues()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 DSMLValue[] getValues()
           
 int hashCode()
           
 int numValues()
           
 void parseXml(DSMLUnmarshaller m, java.lang.Object xmlObj)
           
 void setName(java.lang.String name)
           
 void setValues(DSMLValue[] values)
           
 java.lang.String toXML()
          Would usually call toXml(int) with 0 indent.
 java.lang.String toXML(int indent)
          Convert this object to an XML string.
protected  java.lang.String toXML(java.lang.String s)
           
protected  java.lang.String toXML(java.lang.String s, int indent)
           
protected  java.lang.String toXML(java.lang.String s, int indent, boolean setNS)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESERVED_TYPE_ATTR_NAME

public static final java.lang.String RESERVED_TYPE_ATTR_NAME
The profile specifies that an attr with the name is reserved and provides the name of the objectclass for a given set of attributes.

See Also:
Constant Field Values
Constructor Detail

DSMLAttr

protected DSMLAttr()

DSMLAttr

public DSMLAttr(java.lang.String name,
                java.lang.String value)
         throws DSMLProfileException

DSMLAttr

public DSMLAttr(java.lang.String name,
                DSMLValue[] values)
         throws DSMLProfileException
Method Detail

getValues

public DSMLValue[] getValues()

addValue

public void addValue(DSMLValue value)

addValues

public void addValues(DSMLValue[] values)

setValues

public void setValues(DSMLValue[] values)

clearValues

public void clearValues()

numValues

public int numValues()

addSubclassElements

protected void addSubclassElements(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
Parameters:
indent - how much indent to start with.
Returns:
indented xml fragment
Throws:
DSMLProfileException

toXML

public java.lang.String toXML()
                       throws DSMLProfileException
Description copied from interface: OpenContentElement
Would usually call toXml(int) with 0 indent.

Specified by:
toXML in interface OpenContentElement
Returns:
xml fragment
Throws:
DSMLProfileException

parseXml

public void parseXml(DSMLUnmarshaller m,
                     java.lang.Object xmlObj)
              throws DSMLProfileException
Specified by:
parseXml in interface DSMLUnmarshaller.Parseable
Throws:
DSMLProfileException

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
             throws DSMLProfileException
Throws:
DSMLProfileException

addSubclassAttributes

protected void addSubclassAttributes(XmlBuffer buffer)
                              throws DSMLProfileException
Throws:
DSMLProfileException

toXML

protected java.lang.String toXML(java.lang.String s)
                          throws DSMLProfileException
Throws:
DSMLProfileException

toXML

protected java.lang.String toXML(java.lang.String s,
                                 int indent)
                          throws DSMLProfileException
Throws:
DSMLProfileException

toXML

protected java.lang.String toXML(java.lang.String s,
                                 int indent,
                                 boolean setNS)
                          throws DSMLProfileException
Throws:
DSMLProfileException


Copyright © Sun Microsystems, Inc. All Rights Reserved.