org.apache.directory.api.ldap.model.name.Ava.getName()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(137)

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

Ava.getName介绍

[英]Get the user provided form of this attribute type and value
[中]获取此属性类型和值的用户提供的表单

代码示例

代码示例来源:origin: org.apache.directory.api/api-all

/**
 * Creates a new schema aware RDN from a list of AVA
 * 
 * @param schemaManager The schemaManager to use
 * @param avas The AVA that will be used
 * @throws LdapInvalidDnException If the RDN is invalid
 */
public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException
{
  StringBuilder buffer = new StringBuilder();
  
  for ( int i = 0; i < avas.length; i++ )
  {
    if ( i > 0 )
    {
      buffer.append( '+' );
    }
    
    addAVA( schemaManager, avas[i] );
    buffer.append( avas[i].getName() );
  }
  
  setUpName( buffer.toString() );
  hashCode();
}

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

/**
 * Creates a new schema aware RDN from a list of AVA
 * 
 * @param schemaManager The schemaManager to use
 * @param avas The AVA that will be used
 * @throws LdapInvalidDnException If the RDN is invalid
 */
public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException
{
  StringBuilder buffer = new StringBuilder();
  
  for ( int i = 0; i < avas.length; i++ )
  {
    if ( i > 0 )
    {
      buffer.append( '+' );
    }
    
    addAVA( schemaManager, avas[i] );
    buffer.append( avas[i].getName() );
  }
  
  setUpName( buffer.toString() );
  hashCode();
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new schema aware RDN from a list of AVA
 * 
 * @param schemaManager The schemaManager to use
 * @param avas The AVA that will be used
 * @throws LdapInvalidDnException If the RDN is invalid
 */
public Rdn( SchemaManager schemaManager, Ava... avas ) throws LdapInvalidDnException
{
  StringBuilder buffer = new StringBuilder();
  
  for ( int i = 0; i < avas.length; i++ )
  {
    if ( i > 0 )
    {
      buffer.append( '+' );
    }
    
    addAVA( schemaManager, avas[i] );
    buffer.append( avas[i].getName() );
  }
  
  setUpName( buffer.toString() );
  hashCode();
}

相关文章