|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.shimhost.SchemaDef.ClassDef
public static class SchemaDef.ClassDef
Class encapsulating a DirXML <class-def> schema definition.
Method Summary | |
---|---|
String |
getASN1ID()
Return the ASN1 ID for the class, if any. |
SchemaDef.AttrDef |
getAttrDef(String attrName)
Get a AttrDef instance from this ClassDef instance
based on attribute name. |
boolean |
getContainer()
Get the value for the "container" attribute. |
String |
getName()
Return the name of the class. |
boolean |
hasBeenModified()
Return true if this instance has been modified. |
Iterator |
iterator()
Return an Iterator that will iterate over the AttrDef instances
in this ClassDef instance. |
SchemaDef.AttrDef |
newAttr(String attrName)
Add a new AttrDef instance. |
boolean |
removeAttr(String attrName)
Remove a AttrDef from this instance based on name. |
void |
resetModified()
Reset the modified flag for this instance such that hasBeenModified()
will return false . |
void |
setASN1ID(String asn1id)
Set the ASN1 ID for the class. |
void |
setContainer(boolean value)
Set the value for the "container" attribute. |
Element |
toXML(Node parent)
Create an XML representation for this instance under the passed Node . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getName()
public String getASN1ID()
null
public void setASN1ID(String asn1id)
asn1id
- ID, or null
public boolean getContainer()
true
or false
public void setContainer(boolean value)
value
- true
or false
public Iterator iterator()
Iterator
that will iterate over the AttrDef
instances
in this ClassDef
instance.
Iterator
whose next() method returns AttrDef
instancespublic SchemaDef.AttrDef getAttrDef(String attrName)
AttrDef
instance from this ClassDef
instance
based on attribute name.
attrName
- the name of the attribute
null
or a AttrDef
instancepublic SchemaDef.AttrDef newAttr(String attrName) throws IllegalStateException
AttrDef
instance.
attrName
- name of new attribute
AttrDef
instance
IllegalStateException
- thrown if a AttrDef
already exists with
the passed namepublic boolean removeAttr(String attrName)
attrName
- name of attribute to be removed
AttrDef
was removedpublic boolean hasBeenModified()
true
if this instance has been modified.
The instance is considered to have been modified if a change was made
that affects the persistent representation since:
resetModified()
was last called
hasBeenModified
in interface ConfigElement
true
or false
resetModified()
public void resetModified()
hasBeenModified()
will return false
.
resetModified
in interface ConfigElement
hasBeenModified()
public Element toXML(Node parent)
Node
.
Note that the act of creating an XML representation does not reset this instance's
modified flag. It must be reset by calling resetModified()
.
toXML
in interface ConfigElement
parent
- Node
under which to construct XML representation.
Element
hasBeenModified()
,
resetModified()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |