org.openspml.v2.profiles.dsml
Class Attr

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

public class Attr
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
 
Fields inherited from interface org.openspml.v2.msg.OpenContentElement
code_id
 
Constructor Summary
protected Attr()
           
  Attr(java.lang.String name, java.lang.String value)
           
  Attr(java.lang.String name, Value[] values)
           
 
Method Summary
protected  void addSubclassAttributes(XmlBuffer buffer)
           
protected  void addSubclassElements(XmlBuffer buffer)
           
 void addValue(Value value)
           
 void addValues(Value[] values)
           
 void clearValues()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 Value[] getValues()
           
 int hashCode()
           
 void parseXml(DSMLUnmarshaller m, java.lang.Object xmlObj)
           
 void setName(java.lang.String name)
           
 void setValues(Value[] 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
 

Constructor Detail

Attr

protected Attr()

Attr

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

Attr

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

getValues

public Value[] getValues()

addValue

public void addValue(Value value)

addValues

public void addValues(Value[] values)

setValues

public void setValues(Value[] values)

clearValues

public void clearValues()

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.