org.openspml.v2.profiles.dsml
Class Attr
java.lang.Object
org.openspml.v2.profiles.dsml.NamedItem
org.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
Constructor Summary |
protected |
Attr()
|
|
Attr(java.lang.String name,
java.lang.String value)
|
|
Attr(java.lang.String name,
Value[] values)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
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.