org.apache.directory.shared.ldap.name.DN.isNormalized()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.apache.directory.shared.ldap.name.DN.isNormalized()方法的一些代码示例,展示了DN.isNormalized()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.isNormalized()方法的具体详情如下:
包路径:org.apache.directory.shared.ldap.name.DN
类名称:DN
方法名:isNormalized

DN.isNormalized介绍

[英]Tells if the DN has already been normalized or not
[中]告知DN是否已标准化

代码示例

代码示例来源:origin: org.apache.directory.shared/shared-ldap

if ( isNormalized() )

代码示例来源:origin: org.apache.directory.shared/shared-ldap

sb.append( "    dn" );
if ( dn.isNormalized() )

代码示例来源:origin: org.apache.directory.shared/shared-ldap

public DN getDn( Object obj ) throws LdapInvalidDnException
{
  DN dn = null;
  
  if ( obj instanceof DN )
  {
    dn = (DN)obj;
    
    dn = ( dn.isNormalized() ? dn : DN.normalize( dn, schemaManager.getNormalizerMapping() ) );
  }
  else if ( obj instanceof String )
  {
    dn = new DN( ( String ) obj );
    dn.normalize( schemaManager.getNormalizerMapping() );
  }
  else
  {
    throw new IllegalStateException( I18n.err( I18n.ERR_04218, (obj == null ? null : obj.getClass() ) ) );
  }
  
  return dn;
}

代码示例来源:origin: org.apache.directory.shared/shared-ldap

if ( dn.isNormalized() )

代码示例来源:origin: org.apache.directory.shared/shared-ldap

public DN getDn( Object obj ) throws LdapInvalidDnException
  {
    DN dn = null;

    if ( obj instanceof DN )
    {
      dn = ( DN ) obj;

      dn = ( dn.isNormalized() ? dn : DN.normalize( dn, schemaManager.getNormalizerMapping() ) );
    }
    else if ( obj instanceof String )
    {
      dn = new DN( ( String ) obj );
      dn.normalize( schemaManager.getNormalizerMapping() );
    }
    else
    {
      throw new IllegalStateException( I18n.err( I18n.ERR_04218, ( obj == null ? null : obj.getClass() ) ) );
    }

    return dn;
  }
}

代码示例来源:origin: org.apache.directory.shared/shared-ldap

/**
 * {@inheritDoc}
 */
public DN addAll( int posn, DN dn ) throws LdapInvalidDnException
{
  if ( ( dn == null ) || ( dn.size() == 0 ) )
  {
    return this;
  }
  // Concatenate the rdns
  rdns.addAll( size() - posn, dn.rdns );
  // Regenerate the normalized name and the original string
  if ( this.isNormalized() && dn.isNormalized() )
  {
    if ( this.size() != 0 )
    {
      normName = dn.getNormName() + "," + normName;
      bytes = StringTools.getBytesUtf8( normName );
      upName = dn.getName() + "," + upName;
    }
  }
  else
  {
    normalizeInternal();
    toUpName();
  }
  return this;
}

代码示例来源:origin: org.apache.directory.shared/shared-ldap

if ( !dn.isNormalized( ) )

代码示例来源:origin: org.apache.directory.server/apacheds-avl-partition

if ( !updn.isNormalized() )

相关文章