Package org.apache.directory.ldapstudio.browser.core.internal.model

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.AttributeDescription


        }
        for ( int i = 0; i < attributes.length; i++ )
        {

            String attributeName = attributes[i];
            AttributeDescription ad = new AttributeDescription( attributeName );
            String oidString = ad.toOidString( connection.getSchema() );
            if ( attributeMap.containsKey( oidString ) )
            {
                String value = ( String ) attributeMap.get( oidString );

                // escape
View Full Code Here


        {
            String attributeName = lines[i].getUnfoldedAttributeDescription();
            if ( connection != null )
            {
                // convert attributeName to oid
                AttributeDescription ad = new AttributeDescription( attributeName );
                attributeName = ad.toOidString( connection.getSchema() );
            }
            String value = lines[i].getValueAsString();
            if ( ! Charset.forName( encoding ).newEncoder().canEncode( value ) )
            {
                if ( binaryEncoding == BrowserCoreConstants.BINARYENCODING_BASE64 )
View Full Code Here

     * @return the attribute type description, or the default or a dummy
     */
    public AttributeTypeDescription getAttributeTypeDescription( String description )
    {

        AttributeDescription ad = new AttributeDescription( description );
        String attributeType = ad.getParsedAttributeType();

        if ( this.atdMapByName.containsKey( attributeType.toLowerCase() ) )
        {
            return ( AttributeTypeDescription ) this.atdMapByName.get( attributeType.toLowerCase() );
        }
View Full Code Here

     * @return the attribute type description, or the default or a dummy
     */
    public AttributeTypeDescription getAttributeTypeDescription( String description )
    {

        AttributeDescription ad = new AttributeDescription( description );
        String attributeType = ad.getParsedAttributeType();

        if ( this.atdMapByName.containsKey( attributeType.toLowerCase() ) )
        {
            return ( AttributeTypeDescription ) this.atdMapByName.get( attributeType.toLowerCase() );
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.internal.model.AttributeDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.