|
|||||||||
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()
null
public void setASN1ID(String asn1id)
asn1id
- ID, or null
public boolean getCaseSensitive()
true
or false
public void setCaseSensitive(boolean value)
value
- true
or false
public boolean getMultiValued()
true
or false
public void setMultiValued(boolean value)
value
- true
or false
public boolean getNaming()
true
or false
public void setNaming(boolean value)
value
- true
or false
public boolean getReadOnly()
true
or false
public void setReadOnly(boolean value)
value
- true
or false
public boolean getRequired()
true
or false
public void setRequired(boolean value)
value
- true
or false
public 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 incorrectpublic 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 incorrectpublic 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 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 |