ExtensibleNode node = new ExtensibleNode( attr ); node.setDnAttributes( true ); pos.start += 2; node.setValue( parseAssertionValue( filter, pos, true ) ); node.setMatchingRuleId( filter.substring( start, pos.start ) ); node.setValue( parseAssertionValue( filter, pos, true ) ); node.setDnAttributes( true ); pos.start += 3; node.setValue( parseAssertionValue( filter, pos, true ) ); node.setMatchingRuleId( filter.substring( start, pos.start ) ); node.setValue( parseAssertionValue( filter, pos, true ) );
/** * @see java.lang.Object#toString() * @return A string representing the AndNode */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append( '(' ).append( getAttribute() ); buf.append( "-" ); buf.append( dnAttributes ); buf.append( "-EXTENSIBLE-" ); buf.append( matchingRuleId ); buf.append( "-" ); buf.append( value ); buf.append( super.toString() ); buf.append( ')' ); return buf.toString(); } }
newLeaf = new ExtensibleNode( descendant.getOid(), extensibleNode.getValue(), extensibleNode.getMatchingRuleId(), extensibleNode.dnAttributes() ); break; case( LeafNode.PRESENCE ):
String attribute = ((ExtensibleNode)exprNode).getAttribute(); String matchingRule = ((ExtensibleNode)exprNode).getMatchingRuleId(); boolean dnAttributes = ((ExtensibleNode)exprNode).hasDnAttributes(); Value<?> value = ((ExtensibleNode)exprNode).getValue();
branch = new ExtensibleNode( attribute, value, matchingRule, filter.isDnAttributes() );
newLeaf = new ExtensibleNode( descendant.getOid(), extensibleNode.getValue(), extensibleNode.getMatchingRuleId(), extensibleNode.dnAttributes() ); break; case( LeafNode.PRESENCE ):