|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.AbstractSchemaObject
org.apache.directory.shared.ldap.schema.AbstractAttributeType
Attribute specification bean used to store the schema information for an attributeType definition.
Field Summary |
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
description, isObsolete, names, oid |
Constructor Summary | |
protected |
AbstractAttributeType(java.lang.String oid)
Creates an AttributeType using a unique OID. |
Method Summary | |
int |
getLength()
Gets a length limit for this AttributeType. |
UsageEnum |
getUsage()
Determines the usage for this AttributeType. |
boolean |
isCanUserModify()
Gets whether or not this AttributeType can be modified by a user. |
boolean |
isCollective()
Gets whether or not this AttributeType is a collective attribute. |
boolean |
isSingleValue()
Gets whether or not this AttributeType is single-valued. |
protected void |
setCanUserModify(boolean canUserModify)
Sets whether or not an attribute of this AttributeType can be modified by directory users. |
protected void |
setCollective(boolean collective)
Sets whether or not an attribute of this AttributeType is a collective. |
protected void |
setLength(int length)
Sets the length limit of this AttributeType based on its associated syntax. |
protected void |
setSingleValue(boolean singleValue)
Sets whether or not an attribute of this AttributeType single valued or multi-valued. |
protected void |
setUsage(UsageEnum usage)
The usage class for this attributeType. |
Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
equals, getDescription, getName, getNames, getOid, hashCode, isObsolete, setDescription, setNames, setObsolete, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.directory.shared.ldap.schema.AttributeType |
getEquality, getOrdering, getSubstr, getSuperior, getSyntax |
Methods inherited from interface org.apache.directory.shared.ldap.schema.SchemaObject |
getDescription, getName, getNames, getOid, isObsolete |
Constructor Detail |
protected AbstractAttributeType(java.lang.String oid)
oid
- the IANA OID number for the attributeTypeMethod Detail |
public boolean isSingleValue()
AttributeType
isSingleValue
in interface AttributeType
AttributeType.isSingleValue()
public boolean isCollective()
AttributeType
isCollective
in interface AttributeType
AttributeType.isCollective()
public boolean isCanUserModify()
AttributeType
isCanUserModify
in interface AttributeType
AttributeType.isCanUserModify()
public UsageEnum getUsage()
AttributeType
getUsage
in interface AttributeType
AttributeType.getUsage()
public int getLength()
AttributeType
getLength
in interface AttributeType
AttributeType.getLength()
protected void setSingleValue(boolean singleValue)
singleValue
- true if its is single valued, false if multi-valuedprotected void setCollective(boolean collective)
collective
- true if it is collective, false otherwiseprotected void setCanUserModify(boolean canUserModify)
canUserModify
- true if directory users can modify, false otherwiseprotected void setUsage(UsageEnum usage)
usage
- the way attributes of this AttributeType are used in the DSAprotected void setLength(int length)
length
- the new length to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |