public class AttributeTypeHolder extends SchemaElementImpl
Constructor and Description |
---|
AttributeTypeHolder(String oid)
Create an instance of an attributeType
|
Modifier and Type | Method and Description |
---|---|
String |
dnToLdif(String schemaName)
Transform a schema name to a Dn pointing to the correct position in the DIT
|
String |
getEquality()
Get the equality Matching Rule
|
long |
getOidLen()
Get the attributeType's syntax length
|
String |
getOrdering()
Get the ordering Matching Rule
|
String |
getSubstr()
Get the substring Matching Rule
|
String |
getSuperior()
Get the optional attributeType's superior
|
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(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(String ordering)
Set the ordering Matching Rule
|
void |
setSingleValue(boolean singleValue)
Set the attributeType singleValue flag
|
void |
setSubstr(String substr)
Set the substring Matching Rule
|
void |
setSuperior(String superior)
Set the attributeType's superior
|
void |
setSyntax(String syntax)
Set the attributeType's syntax
|
void |
setUsage(UsageEnum usage)
Set the attributeType's usage
|
String |
toLdif(String schemaName)
Convert this attributeType to a Ldif string
|
String |
toString() |
getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, setDescription, setExtensions, setNames, setObsolete
public AttributeTypeHolder(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 String getSuperior()
public void setSuperior(String superior)
superior
- The attributeType's superiorpublic String getEquality()
public void setEquality(String equality)
equality
- The equality Matching Rulepublic String getOrdering()
public void setOrdering(String ordering)
ordering
- The ordering Matching Rulepublic String getSubstr()
public void setSubstr(String substr)
substr
- The substring Matching Rulepublic String getSyntax()
public void setSyntax(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 String toLdif(String schemaName) throws LdapException
schemaName
- The name of the schema file containing this attributeTypeLdapException
- If something went wrongpublic String dnToLdif(String schemaName) throws LdapException
dnToLdif
in class SchemaElementImpl
schemaName
- The schema nameLdapException
- If the conversion goes wrongCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.