public class NDSAttributeDefinition extends DefaultAttributeDefinition
This is an immutable class.
aliasNames, lowerBound, name, sized, syntax, upperBound| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
isOperational()
Check to see if the attribute is Operational.
|
boolean |
isReadOnly()
Deprecated.
Use method in NDSAttributeFlags.
|
boolean |
isSingleValued()
Deprecated.
Use method in NDSAttributeFlags.
|
void |
setASN1Data(byte[] modifiedASN1)
set the ASN1 information for this attribute.
|
getAliasNames, getLowerBound, getName, getSyntax, getUpperBound, isSized, setSyntax, toStringpublic 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.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 boolean equals(java.lang.Object obj)
AttributeDefinitionequals in class AttributeDefinitionobj - The other AttributeDefinition to compare this to.public final boolean isSingleValued()
isSingleValued in class AttributeDefinitionpublic final boolean isHidden()
isHidden in class AttributeDefinitionpublic final boolean isReadOnly()
isReadOnly in class AttributeDefinitionpublic final NDSAttributeFlags getAttributeFlag()
This is a cloned version of the flags.
public final byte[] getASN1Data()
public void setASN1Data(byte[] modifiedASN1)
public ObjectAttribute createAttribute()
The ObjectAttribute returned contains a single ValueComponent based on the syntax of the attribute.
createAttribute in class AttributeDefinitionpublic boolean isAberrant()
The only attribute that returns true is the "Object Class" attribute, which cannot be modified like other attributes.
isAberrant in class AttributeDefinitionpublic boolean isOperational()
isOperational in class AttributeDefinition
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.