com.sun.org.apache.xerces.internal.impl.xs.identity.Field Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.identity.Field. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XMLSchemaValidator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #2
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #3
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #4
Source File: XMLSchemaValidator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #5
Source File: XMLSchemaValidator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #6
Source File: XMLSchemaValidator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #7
Source File: XMLSchemaValidator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #8
Source File: XMLSchemaValidator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #9
Source File: XMLSchemaValidator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example #10
Source File: XMLSchemaValidator.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #11
Source File: XMLSchemaValidator.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example #12
Source File: XMLSchemaValidator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #13
Source File: XMLSchemaValidator.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #14
Source File: XMLSchemaValidator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #15
Source File: XMLSchemaValidator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #16
Source File: XMLSchemaValidator.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #17
Source File: XMLSchemaValidator.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #18
Source File: XMLSchemaValidator.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #19
Source File: XMLSchemaValidator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #20
Source File: XMLSchemaValidator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #21
Source File: XMLSchemaValidator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    setMayMatch(field, Boolean.TRUE);
    XPathMatcher matcher = field.createMatcher(this, valueStore);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
    return matcher;
}
 
Example #22
Source File: XMLSchemaValidator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
Example #23
Source File: XMLSchemaValidator.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Sets whether the given field is permitted to match a value.
 * This should be used to catch instance documents that try
 * and match a field several times in the same scope.
 *
 * @param field The field that may be permitted to be matched.
 * @param state Boolean indiciating whether the field may be matched.
 */
public void setMayMatch(Field field, Boolean state) {
    fMayMatchFieldMap.put(field, state);
}
 
Example #24
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns whether the given field is permitted to match a value.
 *
 * @param field The field that may be permitted to be matched.
 * @return Boolean indicating whether the field may be matched.
 */
public Boolean mayMatch(Field field) {
    return (Boolean) fMayMatchFieldMap.get(field);
}
 
Example #25
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets whether the given field is permitted to match a value.
 * This should be used to catch instance documents that try
 * and match a field several times in the same scope.
 *
 * @param field The field that may be permitted to be matched.
 * @param state Boolean indiciating whether the field may be matched.
 */
public void setMayMatch(Field field, Boolean state) {
    fMayMatchFieldMap.put(field, state);
}
 
Example #26
Source File: XMLSchemaValidator.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Returns whether the given field is permitted to match a value.
 *
 * @param field The field that may be permitted to be matched.
 * @return Boolean indicating whether the field may be matched.
 */
public Boolean mayMatch(Field field) {
    return (Boolean) fMayMatchFieldMap.get(field);
}
 
Example #27
Source File: XMLSchemaValidator.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns whether the given field is permitted to match a value.
 *
 * @param field The field that may be permitted to be matched.
 * @return Boolean indicating whether the field may be matched.
 */
public Boolean mayMatch(Field field) {
    return (Boolean) fMayMatchFieldMap.get(field);
}
 
Example #28
Source File: XMLSchemaValidator.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets whether the given field is permitted to match a value.
 * This should be used to catch instance documents that try
 * and match a field several times in the same scope.
 *
 * @param field The field that may be permitted to be matched.
 * @param state Boolean indiciating whether the field may be matched.
 */
public void setMayMatch(Field field, Boolean state) {
    fMayMatchFieldMap.put(field, state);
}
 
Example #29
Source File: XMLSchemaValidator.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets whether the given field is permitted to match a value.
 * This should be used to catch instance documents that try
 * and match a field several times in the same scope.
 *
 * @param field The field that may be permitted to be matched.
 * @param state Boolean indiciating whether the field may be matched.
 */
public void setMayMatch(Field field, Boolean state) {
    fMayMatchFieldMap.put(field, state);
}
 
Example #30
Source File: XMLSchemaValidator.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns whether the given field is permitted to match a value.
 *
 * @param field The field that may be permitted to be matched.
 * @return Boolean indicating whether the field may be matched.
 */
public Boolean mayMatch(Field field) {
    return (Boolean) fMayMatchFieldMap.get(field);
}