|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.converter.schema.SchemaElementImpl
org.apache.directory.shared.converter.schema.AttributeTypeHolder
public class AttributeTypeHolder
A bean used to hold the literal values of an AttributeType parsed out of an OpenLDAP schema configuration file.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.converter.schema.SchemaElementImpl |
---|
description, extensions, names, obsolete, oid |
Constructor Summary | |
---|---|
AttributeTypeHolder(java.lang.String oid)
Create an instance of an attributeType |
Method Summary | |
---|---|
java.lang.String |
dnToLdif(java.lang.String schemaName)
|
java.lang.String |
getEquality()
Get the equality Matching Rule |
int |
getOidLen()
Get the attributeType's syntax length |
java.lang.String |
getOrdering()
Get the ordering Matching Rule |
java.lang.String |
getSubstr()
Get the substring Matching Rule |
java.lang.String |
getSuperior()
Get the optional attributeType's superior |
java.lang.String |
getSyntax()
Get the attributeType's syntax |
UsageEnum |
getUsage()
Get the attributeType's usage |
boolean |
isCollective()
Tells if the attributeType is collectove or not |
boolean |
isNoUserModification()
Tellse if the attributeType is mutable or not |
boolean |
isSingleValue()
Tells if the attribute is single-valued |
void |
setCollective(boolean collective)
Set the attributeType collective flag |
void |
setEquality(java.lang.String equality)
Set the equality Matching Rule |
void |
setNoUserModification(boolean noUserModification)
Set the attributeType noUserModification flag |
void |
setOidLen(int oidLen)
Set the attributeType's syntax length |
void |
setOrdering(java.lang.String ordering)
Set the ordering Matching Rule |
void |
setSingleValue(boolean singleValue)
Set the attributeType singleValue flag |
void |
setSubstr(java.lang.String substr)
Set the substring Matching Rule |
void |
setSuperior(java.lang.String superior)
Set the attributeType's superior |
void |
setSyntax(java.lang.String syntax)
Set the attributeType's syntax |
void |
setUsage(UsageEnum usage)
Set the attributeType's usage |
java.lang.String |
toLdif(java.lang.String schemaName)
Convert this attributeType to a Ldif string |
java.lang.String |
toString()
Return a String representing this AttributeType. |
Methods inherited from class org.apache.directory.shared.converter.schema.SchemaElementImpl |
---|
extensionsToLdif, getDescription, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsolete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeTypeHolder(java.lang.String oid)
oid
- The attributeType's OIDMethod Detail |
---|
public boolean isSingleValue()
public void setSingleValue(boolean singleValue)
singleValue
- The value for this flagpublic boolean isCollective()
public void setCollective(boolean collective)
collective
- The value for this flagpublic boolean isNoUserModification()
public void setNoUserModification(boolean noUserModification)
noUserModification
- The value for this flagpublic java.lang.String getSuperior()
public void setSuperior(java.lang.String superior)
superior
- The attributeType's superiorpublic java.lang.String getEquality()
public void setEquality(java.lang.String equality)
equality
- The equality Matching Rulepublic java.lang.String getOrdering()
public void setOrdering(java.lang.String ordering)
ordering
- The ordering Matching Rulepublic java.lang.String getSubstr()
public void setSubstr(java.lang.String substr)
substr
- The substring Matching Rulepublic java.lang.String getSyntax()
public void setSyntax(java.lang.String syntax)
syntax
- The attributeType's syntaxpublic UsageEnum getUsage()
public void setUsage(UsageEnum usage)
usage
- The attributeType's usagepublic int getOidLen()
public void setOidLen(int oidLen)
oidLen
- The attributeType's syntax lengthpublic java.lang.String toLdif(java.lang.String schemaName) throws LdapException
schemaName
- The name of the schema file containing this attributeType
LdapException
- If any error occurs.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dnToLdif(java.lang.String schemaName) throws LdapException
dnToLdif
in class SchemaElementImpl
LdapException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |