当前位置: 首页>>代码示例>>Java>>正文


Java Schema.getContent方法代码示例

本文整理汇总了Java中org.apache.directory.api.ldap.model.schema.registries.Schema.getContent方法的典型用法代码示例。如果您正苦于以下问题:Java Schema.getContent方法的具体用法?Java Schema.getContent怎么用?Java Schema.getContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.directory.api.ldap.model.schema.registries.Schema的用法示例。


在下文中一共展示了Schema.getContent方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadAttributeTypes

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadAttributeTypes( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> attributeTypeEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return attributeTypeEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof AttributeType )
            {
                AttributeType attributeType = ( AttributeType ) schemaObject;

                Entry attributeTypeEntry = factory.convert( attributeType, schema, null );

                attributeTypeEntries.add( attributeTypeEntry );
            }
        }
    }

    return attributeTypeEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例2: loadComparators

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadComparators( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> comparatorEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return comparatorEntries;
    }

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof LdapComparatorDescription )
            {
                LdapComparatorDescription ldapComparatorDescription = ( LdapComparatorDescription ) schemaObject;
                Entry lcEntry = getEntry( ldapComparatorDescription );

                comparatorEntries.add( lcEntry );
            }
        }
    }

    return comparatorEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:34,代码来源:DefaultSchemaLoader.java

示例3: loadDitContentRules

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadDitContentRules( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> ditContentRuleEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return ditContentRuleEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof DitContentRule )
            {
                DitContentRule ditContentRule = ( DitContentRule ) schemaObject;

                Entry ditContentRuleEntry = factory.convert( ditContentRule, schema, null );

                ditContentRuleEntries.add( ditContentRuleEntry );
            }
        }
    }

    return ditContentRuleEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例4: loadDitStructureRules

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadDitStructureRules( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> ditStructureRuleEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return ditStructureRuleEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof DitStructureRule )
            {
                DitStructureRule ditStructureRule = ( DitStructureRule ) schemaObject;

                Entry ditStructureRuleEntry = factory.convert( ditStructureRule, schema, null );

                ditStructureRuleEntries.add( ditStructureRuleEntry );
            }
        }
    }

    return ditStructureRuleEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例5: loadMatchingRuleUses

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadMatchingRuleUses( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> matchingRuleUseEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return matchingRuleUseEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof MatchingRuleUse )
            {
                MatchingRuleUse matchingRuleUse = ( MatchingRuleUse ) schemaObject;

                Entry matchingRuleUseEntry = factory.convert( matchingRuleUse, schema, null );

                matchingRuleUseEntries.add( matchingRuleUseEntry );
            }
        }
    }

    return matchingRuleUseEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例6: loadMatchingRules

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadMatchingRules( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> matchingRuleEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return matchingRuleEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof MatchingRule )
            {
                MatchingRule matchingRule = ( MatchingRule ) schemaObject;

                Entry matchingRuleEntry = factory.convert( matchingRule, schema, null );

                matchingRuleEntries.add( matchingRuleEntry );
            }
        }
    }

    return matchingRuleEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例7: loadNameForms

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadNameForms( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> nameFormEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return nameFormEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof NameForm )
            {
                NameForm nameForm = ( NameForm ) schemaObject;

                Entry nameFormEntry = factory.convert( nameForm, schema, null );

                nameFormEntries.add( nameFormEntry );
            }
        }
    }

    return nameFormEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例8: loadNormalizers

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadNormalizers( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> normalizerEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return normalizerEntries;
    }

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof NormalizerDescription )
            {
                NormalizerDescription normalizerDescription = ( NormalizerDescription ) schemaObject;
                Entry normalizerEntry = getEntry( normalizerDescription );

                normalizerEntries.add( normalizerEntry );
            }
        }
    }

    return normalizerEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:34,代码来源:DefaultSchemaLoader.java

示例9: loadObjectClasses

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadObjectClasses( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> objectClassEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return objectClassEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof ObjectClass )
            {
                ObjectClass objectClass = ( ObjectClass ) schemaObject;

                Entry objectClassEntry = factory.convert( objectClass, schema, null );

                objectClassEntries.add( objectClassEntry );
            }
        }
    }

    return objectClassEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java

示例10: loadSyntaxCheckers

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadSyntaxCheckers( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> syntaxCheckerEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return syntaxCheckerEntries;
    }

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof SyntaxCheckerDescription )
            {
                SyntaxCheckerDescription syntaxCheckerDescription = ( SyntaxCheckerDescription ) schemaObject;
                Entry syntaxCheckerEntry = getEntry( syntaxCheckerDescription );

                syntaxCheckerEntries.add( syntaxCheckerEntry );
            }
        }
    }

    return syntaxCheckerEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:34,代码来源:DefaultSchemaLoader.java

示例11: loadSyntaxes

import org.apache.directory.api.ldap.model.schema.registries.Schema; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<Entry> loadSyntaxes( Schema... schemas ) throws LdapException, IOException
{
    List<Entry> syntaxEntries = new ArrayList<>();

    if ( schemas == null )
    {
        return syntaxEntries;
    }

    AttributesFactory factory = new AttributesFactory();

    for ( Schema schema : schemas )
    {
        Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent();

        for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers )
        {
            SchemaObject schemaObject = schemaObjectWrapper.get();

            if ( schemaObject instanceof LdapSyntax )
            {
                LdapSyntax ldapSyntax = ( LdapSyntax ) schemaObject;

                Entry ldapSyntaxEntry = factory.convert( ldapSyntax, schema, null );

                syntaxEntries.add( ldapSyntaxEntry );
            }
        }
    }

    return syntaxEntries;
}
 
开发者ID:apache,项目名称:directory-ldap-api,代码行数:37,代码来源:DefaultSchemaLoader.java


注:本文中的org.apache.directory.api.ldap.model.schema.registries.Schema.getContent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。