|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.nds.dirxml.shimhost.SchemaDef.AttrDef
public static class SchemaDef.AttrDef
Class encapsulating a DirXML <attr-def> schema definition.
| Method Summary | |
|---|---|
String |
getASN1ID()
Return the ASN1 ID for the attribute, if any. |
static int |
getAttrTypeFromString(String typeString)
Get the integer value corresponding to a value from the "type" attribute. |
static String |
getAttrTypeString(int type)
Get the String corresponding to an integer "type" value. |
boolean |
getCaseSensitive()
Get the value for the "case-sensitive" attribute. |
boolean |
getMultiValued()
Get the value for the "multi-valued" attribute. |
String |
getName()
Return the name of the attribute. |
boolean |
getNaming()
Get the value for the "naming" attribute. |
boolean |
getReadOnly()
Get the value for the "read-only" attribute. |
boolean |
getRequired()
Get the value for the "required" attribute. |
int |
getType()
Get the integer value corresponding to the "type" attribute. |
boolean |
hasBeenModified()
Return true if this instance has been modified. |
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 attribute. |
void |
setCaseSensitive(boolean value)
Set the value for the "case-sensitive" attribute. |
void |
setMultiValued(boolean value)
Set the value for the "multi-valued" attribute. |
void |
setNaming(boolean value)
Set the value for the "naming" attribute. |
void |
setReadOnly(boolean value)
Set the value for the "read-only" attribute. |
void |
setRequired(boolean value)
Set the value for the "required" attribute. |
void |
setType(int type)
Set the integer value corresponding to the "type" 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()
nullpublic void setASN1ID(String asn1id)
asn1id - ID, or nullpublic boolean getCaseSensitive()
true or falsepublic void setCaseSensitive(boolean value)
value - true or falsepublic boolean getMultiValued()
true or falsepublic void setMultiValued(boolean value)
value - true or falsepublic boolean getNaming()
true or falsepublic void setNaming(boolean value)
value - true or falsepublic boolean getReadOnly()
true or falsepublic void setReadOnly(boolean value)
value - true or falsepublic boolean getRequired()
true or falsepublic void setRequired(boolean value)
value - true or falsepublic int getType()
ATTR_TYPE_STRING, ATTR_TYPE_INT, etc.
public void setType(int type)
throws IllegalArgumentException
type - ATTR_TYPE_STRING, ATTR_TYPE_INT, etc.
IllegalArgumentException - thrown if type parameter is incorrect
public static int getAttrTypeFromString(String typeString)
throws IllegalArgumentException
typeString - value from "type" attribute
ATTR_TYPE_STRING, ATTR_TYPE_INT, etc.
IllegalArgumentException - thrown if typeString parameter is incorrect
public static String getAttrTypeString(int type)
throws IllegalArgumentException
String corresponding to an integer "type" value.
type - ATTR_TYPE_STRING, ATTR_TYPE_INT, etc.
IllegalArgumentException - thrown if type parameter is incorrectpublic 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 ConfigElementtrue or falseresetModified()public void resetModified()
hasBeenModified()
will return false.
resetModified in interface ConfigElementhasBeenModified()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 ConfigElementparent - Node under which to construct XML representation.
ElementhasBeenModified(),
resetModified()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||