|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.AttributeDefinition
com.novell.admin.ns.nds.NDSAttributeDefinition
Concrete class for NDS attribute definitions.
This is an immutable class.
| Field Summary |
| Fields inherited from class com.novell.admin.ns.AttributeDefinition |
aliasNames, lowerBound, name, sized, syntax, upperBound |
| Constructor Summary | |
NDSAttributeDefinition(java.lang.String attrName,
int syntax,
int flags,
long lBound,
long uBound,
byte[] asn1)
Constructor for all NDS attribute definitions. |
|
NDSAttributeDefinition(java.lang.String attrName,
NDSSyntax syntax,
NDSAttributeFlags flags,
long lBound,
long uBound,
byte[] asn1)
Constructor for all NDS attribute definitions. |
|
| Method Summary | |
ObjectAttribute |
createAttribute()
Creates a valid ObjectAttribute according to this attribute definition. |
boolean |
equals(java.lang.Object obj)
Checks to see if this definition is equal to another. |
byte[] |
getASN1Data()
Retrieves the ASN1 information for this attribute. |
NDSAttributeFlags |
getAttributeFlag()
Returns the attribute flags associated with this attribute definition. |
boolean |
isAberrant()
Check to see if the attribute behaves in an atypical manner. |
boolean |
isHidden()
Deprecated. Use method in NDSAttributeFlags. |
boolean |
isReadOnly()
Deprecated. Use method in NDSAttributeFlags. |
boolean |
isSingleValued()
Deprecated. Use method in NDSAttributeFlags. |
| Methods inherited from class com.novell.admin.ns.AttributeDefinition |
getAliasNames, getLowerBound, getName, getSyntax, getUpperBound, isSized, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NDSAttributeDefinition(java.lang.String attrName,
int syntax,
int flags,
long lBound,
long uBound,
byte[] asn1)
throws NamespaceException
attrName - Name of the attribute.syntax - The attribute syntax.flags - The attribute flags.lBound - Lower bound for values associated with this attribute, if this attribute is sized.uBound - upper bound for values associated with this attribute, if this attribute is sized.asn1 - See NDS Schema Reference.
NamespaceException - Attribute is not sizeable.
public NDSAttributeDefinition(java.lang.String attrName,
NDSSyntax syntax,
NDSAttributeFlags flags,
long lBound,
long uBound,
byte[] asn1)
throws NamespaceException
attrName - Name of the attribute.syntax - NDSSyntax for the attribute.flags - NDS flags for this attribute.lBound - Lower bound for values associated with this attribute, if the attribute is sized.uBound - Upper bound for values associated with this attribute, if this attribute is sized.asn1 - See NDS Schema Reference.
NamespaceException - Attribute is not sizeable.| Method Detail |
public ObjectAttribute createAttribute()
The ObjectAttribute returned contains a single ValueComponent based on the syntax of the attribute.
createAttribute in class AttributeDefinitionpublic boolean equals(java.lang.Object obj)
AttributeDefinition
equals in class AttributeDefinitionobj - The other AttributeDefinition to compare this to.
public final byte[] getASN1Data()
public final NDSAttributeFlags getAttributeFlag()
This is a cloned version of the flags.
public boolean isAberrant()
The only attribute that returns true is the "Object Class" attribute, which cannot be modified like other attributes.
isAberrant in class AttributeDefinitionpublic final boolean isHidden()
isHidden in class AttributeDefinitionpublic final boolean isReadOnly()
isReadOnly in class AttributeDefinitionpublic final boolean isSingleValued()
isSingleValued in class AttributeDefinition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||