/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * * @param elementsSeen The elements that have been processed already * @param element The current element * @param pos T he position in the Schema * @return The elements we have just processed * @throws LdapSchemaException If the schema is wrong */ private static int checkElement( int elementsSeen, SchemaObjectElements element, PosSchema pos ) throws LdapSchemaException { if ( ( elementsSeen & element.getValue() ) != 0 ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13780_SCHEMA_OBJECT_DESCRIPTION_HAS_ELEMENT_TWICE, element, pos.lineNumber, pos.start ) ); } elementsSeen |= element.getValue(); return elementsSeen; }
/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, String value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new LessEqNode object. * * @param attribute the attribute name * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public LessEqNode( String attribute, byte[] value ) throws LdapSchemaException { super( attribute, value, AssertionType.LESSEQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * Creates a new GreaterOrEqual object. * * @param attributeType the attributeType * @param value the value to test for * @throws LdapSchemaException If the AttributeType does not have an ORDERING MatchingRule */ public GreaterEqNode( AttributeType attributeType, Value value ) throws LdapSchemaException { super( attributeType, value, AssertionType.GREATEREQ ); // Check if the AttributeType has an Ordering MR if ( ( attributeType != null ) && ( attributeType.getOrdering() == null ) ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13301_NO_ORDERING_MR_FOR_AT, attributeType.getName() ) ); } }
/** * * @param elementsSeen The elements that have been processed already * @param element The current element * @param pos T he position in the Schema * @return The elements we have just processed * @throws LdapSchemaException If the schema is wrong */ private static int checkElement( int elementsSeen, SchemaObjectElements element, PosSchema pos ) throws LdapSchemaException { if ( ( elementsSeen & element.getValue() ) != 0 ) { throw new LdapSchemaException( I18n.err( I18n.ERR_13780_SCHEMA_OBJECT_DESCRIPTION_HAS_ELEMENT_TWICE, element, pos.lineNumber, pos.start ) ); } elementsSeen |= element.getValue(); return elementsSeen; }