com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher

Here are the examples of the java api class com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher taken from open source projects.

1. XMLSchemaValidator#activateField()

Project: openjdk
Source File: XMLSchemaValidator.java
View license
// startValueScopeFor(IdentityConstraint identityConstraint)
/**
     * Request to activate the specified field. This method returns the
     * matcher for the field.
     *
     * @param field The field to activate.
     */
public XPathMatcher activateField(Field field, int initialDepth) {
    ValueStore valueStore = fValueStoreCache.getValueStoreFor(field.getIdentityConstraint(), initialDepth);
    XPathMatcher matcher = field.createMatcher(valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}

2. XMLSchemaValidator#activateSelectorFor()

Project: openjdk
Source File: XMLSchemaValidator.java
View license
// endValueScopeFor(IdentityConstraint)
// a utility method for Identity constraints
private void activateSelectorFor(IdentityConstraint ic) {
    Selector selector = ic.getSelector();
    FieldActivator activator = this;
    if (selector == null)
        return;
    XPathMatcher matcher = selector.createMatcher(activator, fElementDepth);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
}