/** * @return the current attribute's type */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * @return the current attribute's type */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * @return Returns the currentAttribute type. */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * @return the current attribute's type */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * @return Returns the currentAttribute type. */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * @return Returns the currentAttribute type. */ public String getCurrentAttributeType() { return currentAttribute.getUpId(); }
/** * Converts an {@link Attribute} to a JNDI Attribute. * * @param attribute the {@link Attribute} to convert * @return the equivalent JNDI Attribute */ public static javax.naming.directory.Attribute toJndiAttribute( Attribute attribute ) { if ( attribute != null ) { javax.naming.directory.Attribute jndiAttribute = new BasicAttribute( attribute.getUpId() ); // Looping on values for ( Iterator<Value> valueIterator = attribute.iterator(); valueIterator.hasNext(); ) { Value value = valueIterator.next(); jndiAttribute.add( value.getValue() ); } return jndiAttribute; } return null; }
/** * Converts an {@link Attribute} to a JNDI Attribute. * * @param attribute the {@link Attribute} to convert * @return the equivalent JNDI Attribute */ public static javax.naming.directory.Attribute toJndiAttribute( Attribute attribute ) { if ( attribute != null ) { javax.naming.directory.Attribute jndiAttribute = new BasicAttribute( attribute.getUpId() ); // Looping on values for ( Iterator<Value> valueIterator = attribute.iterator(); valueIterator.hasNext(); ) { Value value = valueIterator.next(); jndiAttribute.add( value.getValue() ); } return jndiAttribute; } return null; }
/** * Converts an {@link Attribute} to a JNDI Attribute. * * @param attribute the {@link Attribute} to convert * @return the equivalent JNDI Attribute */ public static javax.naming.directory.Attribute toJndiAttribute( Attribute attribute ) { if ( attribute != null ) { javax.naming.directory.Attribute jndiAttribute = new BasicAttribute( attribute.getUpId() ); // Looping on values for ( Iterator<Value> valueIterator = attribute.iterator(); valueIterator.hasNext(); ) { Value value = valueIterator.next(); jndiAttribute.add( value.getValue() ); } return jndiAttribute; } return null; }
lineBuffer.append( attr.getUpId() );
/** * Returns an ldap attribute using the supplied apache ldap attribute. * * @param a apache ldap attribute * * @return ldap attribute */ public LdapAttribute toLdapAttribute(final Attribute a) { boolean isBinary = false; if (a.getId().contains(";binary")) { isBinary = true; } else if (binaryAttrs != null && binaryAttrs.contains(a.getUpId())) { isBinary = true; } final LdapAttribute la = new LdapAttribute(sortBehavior, isBinary); la.setName(a.getUpId()); for (Value<?> v : a) { if (isBinary) { la.addBinaryValue(v.getBytes()); } else { la.addStringValue(v.getString()); } } return la; }
existingAttribute.setUpId( attribute.getUpId() );
existingAttribute.setUpId( attribute.getUpId() );
existingAttribute.setUpId( attribute.getUpId() );
attrType = schemaManager.lookupAttributeTypeRegistry( attr.getUpId() );
String attributeId = modification.getAttribute().getUpId(); String id = stripOptions( attributeId ); modification.getAttribute().setUpId( id );
this.upId = attribute.getUpId();
this.upId = attribute.getUpId();
this.upId = attribute.getUpId();
attributeElement.addAttribute( "name", attribute.getUpId() );