org.openspml.v2.profiles.dsml
Class DSMLAttr
java.lang.Object
org.openspml.v2.profiles.dsml.NamedItem
org.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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
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
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.