public class AttributeTypeHolder extends SchemaElementImpl
| Modifier and Type | Field and Description |
|---|---|
private boolean |
collective
A flag for collective attribute.
|
private String |
equality
The equality matching rule
|
private boolean |
noUserModification
A flaf for immutable attribue.
|
private long |
oidLen
The optional length for this attribute
|
private String |
ordering
The ordering matching rule
|
private boolean |
singleValue
A flag for single valued attributes.
|
private String |
substr
The substring matching rule
|
private String |
superior
The optional superior
|
private String |
syntax
The syntax this attribute respects
|
private org.apache.directory.api.ldap.model.schema.UsageEnum |
usage
The attribute uase.
|
description, extensions, names, obsolete, oid| 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
|
org.apache.directory.api.ldap.model.schema.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(org.apache.directory.api.ldap.model.schema.UsageEnum usage)
Set the attributeType's usage
|
String |
toLdif(String schemaName)
Convert this attributeType to a Ldif string
|
String |
toString() |
extensionsToLdif, getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsoleteprivate boolean singleValue
private boolean collective
private boolean noUserModification
private String superior
private String equality
private String ordering
private String substr
private String syntax
private long oidLen
private org.apache.directory.api.ldap.model.schema.UsageEnum usage
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 org.apache.directory.api.ldap.model.schema.UsageEnum getUsage()
public void setUsage(org.apache.directory.api.ldap.model.schema.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 org.apache.directory.api.ldap.model.exception.LdapException
schemaName - The name of the schema file containing this attributeTypeorg.apache.directory.api.ldap.model.exception.LdapException - If something went wrongpublic String toString()
public String dnToLdif(String schemaName) throws org.apache.directory.api.ldap.model.exception.LdapException
dnToLdif in class SchemaElementImplschemaName - The schema nameorg.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.