public class AttributeTypeHolder extends SchemaElementImpl
| Modifier and Type | Field and Description |
|---|---|
private boolean |
collective
A flag for collective attribute.
|
private java.lang.String |
equality
The equality matching rule
|
private boolean |
noUserModification
A flaf for immutable attribue.
|
private long |
oidLen
The optional length for this attribute
|
private java.lang.String |
ordering
The ordering matching rule
|
private boolean |
singleValue
A flag for single valued attributes.
|
private java.lang.String |
substr
The substring matching rule
|
private java.lang.String |
superior
The optional superior
|
private java.lang.String |
syntax
The syntax this attribute respects
|
private UsageEnum |
usage
The attribute uase.
|
description, extensions, names, obsolete, oid| Constructor and Description |
|---|
AttributeTypeHolder(java.lang.String oid)
Create an instance of an attributeType
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dnToLdif(java.lang.String schemaName)
Transform a schema name to a Dn pointing to the correct position in the DIT
|
java.lang.String |
getEquality()
Get the equality Matching Rule
|
long |
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()
Tells 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(long 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() |
extensionsToLdif, getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsoleteprivate boolean singleValue
private boolean collective
private boolean noUserModification
private java.lang.String superior
private java.lang.String equality
private java.lang.String ordering
private java.lang.String substr
private java.lang.String syntax
private long oidLen
private UsageEnum usage
public AttributeTypeHolder(java.lang.String oid)
oid - The attributeType's OIDpublic 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 long getOidLen()
public void setOidLen(long 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 attributeTypeLdapException - If something went wrongpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String dnToLdif(java.lang.String schemaName)
throws LdapException
dnToLdif in class SchemaElementImplschemaName - The schema nameLdapException - If the conversion goes wrong