|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.admin.ns.AttributeDefinition
com.novell.admin.ns.ldap.LDAPAttributeDefinition
Concrete class for LDAP 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 | |
LDAPAttributeDefinition(java.lang.String attrName,
Syntax syntax,
LDAPAttributeFlags flags,
java.lang.String oid)
Constructs an LDAPAttributeDefinition object - simple version. |
|
LDAPAttributeDefinition(java.lang.String attrName,
Syntax syntax,
long lowerBound,
long upperBound,
java.lang.String[] aliasNames,
LDAPAttributeFlags flags,
java.lang.String oid,
java.lang.String NDAPName)
Constructs an LDAPAttributeDefinition object. |
|
LDAPAttributeDefinition(java.lang.String attrName,
Syntax syntax,
long lowerBound,
long upperBound,
java.lang.String[] aliasNames,
LDAPAttributeFlags flags,
java.lang.String oid,
java.lang.String NDAPName,
java.lang.String supOID,
java.lang.String equalityOID,
java.lang.String orderingOID,
java.lang.String substrOID)
Constructs an LDAPAttributeDefinition object. |
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. |
LDAPAttributeFlags |
getAttributeFlag()
Get the flags associated with this attribute definition. |
java.lang.String |
getEqualityOID()
Retrieves the EQUALITY matching rule OID. |
java.lang.String |
getNDAPName()
Retrieves the NDAP equivalent name for this attribute. |
java.lang.String |
getOID()
Retrieves the dotted numeric OID for this attribute. |
java.lang.String |
getOrderingOID()
Retrieves the ORDERING matching rule OID. |
java.lang.String |
getSubstringOID()
Retrieves the Substring matching rule OID. |
java.lang.String |
getSupOID()
Retrieves the SUP attribute. |
boolean |
isAberrant()
Check to see if the attribute behaves in an atypical manner. |
boolean |
isHidden()
Checks to see if the attribute is hidden. |
boolean |
isReadOnly()
Checks to see if the attribute is read-only. |
boolean |
isSingleValued()
Checks to see if the attribute is single-valued. |
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 LDAPAttributeDefinition(java.lang.String attrName, Syntax syntax, LDAPAttributeFlags flags, java.lang.String oid) throws NamespaceException
attrName
- Name of the attribute.syntax
- LDAPSyntax for the attribute.flags
- LDAP flags for this attribute.oid
- Dotted numeric OID for this attribute definition.
NamespaceException
- Attribute is not sizeable.public LDAPAttributeDefinition(java.lang.String attrName, Syntax syntax, long lowerBound, long upperBound, java.lang.String[] aliasNames, LDAPAttributeFlags flags, java.lang.String oid, java.lang.String NDAPName) throws NamespaceException
attrName
- Name of the attribute.syntax
- LDAPSyntax for the attribute.lowerBound
- lower bound for values associated with this attribute.
This is only used if 'flags' indicates that this attribute is sized.upperBound
- upper bound for values associated with this attribute
This is only used if 'flags' indicates that this attribute is sized.aliasNames
- flags
- LDAP flags for this attribute.oid
- Dotted numeric OID for this attribute definition.NDAPName
- The equivalent NDAP name for this attribute.
NamespaceException
- Attribute is not sizeable.public LDAPAttributeDefinition(java.lang.String attrName, Syntax syntax, long lowerBound, long upperBound, java.lang.String[] aliasNames, LDAPAttributeFlags flags, java.lang.String oid, java.lang.String NDAPName, java.lang.String supOID, java.lang.String equalityOID, java.lang.String orderingOID, java.lang.String substrOID) throws NamespaceException
attrName
- Name of the attribute.syntax
- LDAPSyntax for the attribute.lowerBound
- lower bound for values associated with this attribute.
This is only used if 'flags' indicates that this attribute is sized.upperBound
- upper bound for values associated with this attribute.
This is only used if 'flags' indicates that this attribute is sized.aliasNames
- flags
- LDAP flags for this attribute.oid
- Dotted numeric OID for this attribute definition.NDAPName
- The equivalent NDAP name for this attribute.supOID
- The attribute from which this attribute is derived.equalityOID
- The matching rule OID.orderingOID
- The ordering rule OID.substrOID
- The substring rule OID.
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 AttributeDefinition
public boolean equals(java.lang.Object obj)
AttributeDefinition
equals
in class AttributeDefinition
obj
- The other AttributeDefinition to compare this to.
public LDAPAttributeFlags getAttributeFlag()
This is a cloned version of the flags.
public java.lang.String getEqualityOID()
public java.lang.String getNDAPName()
public java.lang.String getOID()
public java.lang.String getOrderingOID()
public java.lang.String getSubstringOID()
public java.lang.String getSupOID()
public boolean isAberrant()
The only attribute that returns true is the "Object Class" attribute, which cannot be modified like other attributes.
isAberrant
in class AttributeDefinition
public boolean isHidden()
isHidden
in class AttributeDefinition
public boolean isReadOnly()
isReadOnly
in class AttributeDefinition
public boolean isSingleValued()
isSingleValued
in class AttributeDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |