本文整理汇总了Java中org.apache.directory.api.ldap.model.schema.registries.Schema.getSchemaLoader方法的典型用法代码示例。如果您正苦于以下问题:Java Schema.getSchemaLoader方法的具体用法?Java Schema.getSchemaLoader怎么用?Java Schema.getSchemaLoader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.directory.api.ldap.model.schema.registries.Schema
的用法示例。
在下文中一共展示了Schema.getSchemaLoader方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addAttributeTypes
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's AttributeTypes
*/
private void addAttributeTypes( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadAttributeTypes( schema ) )
{
AttributeType attributeType = factory.getAttributeType( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, attributeType, schema );
}
}
示例2: addComparators
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's comparators
*/
private void addComparators( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadComparators( schema ) )
{
LdapComparator<?> comparator = factory.getLdapComparator( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, comparator, schema );
}
}
示例3: addMatchingRules
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's MatchingRules
*/
private void addMatchingRules( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadMatchingRules( schema ) )
{
MatchingRule matchingRule = factory.getMatchingRule( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, matchingRule, schema );
}
}
示例4: addNormalizers
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's Normalizers
*/
private void addNormalizers( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadNormalizers( schema ) )
{
Normalizer normalizer = factory.getNormalizer( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, normalizer, schema );
}
}
示例5: addObjectClasses
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's ObjectClasses
*/
private void addObjectClasses( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadObjectClasses( schema ) )
{
ObjectClass objectClass = factory.getObjectClass( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, objectClass, schema );
}
}
示例6: addSyntaxes
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
* Add all the Schema's Syntaxes
*/
private void addSyntaxes( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadSyntaxes( schema ) )
{
LdapSyntax syntax = factory.getSyntax( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, syntax, schema );
}
}
示例7: addSyntaxCheckers
import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**Add
* Register all the Schema's SyntaxCheckers
*/
private void addSyntaxCheckers( Schema schema, Registries registries ) throws LdapException, IOException
{
if ( schema.getSchemaLoader() == null )
{
return;
}
for ( Entry entry : schema.getSchemaLoader().loadSyntaxCheckers( schema ) )
{
SyntaxChecker syntaxChecker = factory.getSyntaxChecker( this, entry, registries, schema.getSchemaName() );
addSchemaObject( registries, syntaxChecker, schema );
}
}