Java Code Examples for com.sun.org.apache.xerces.internal.impl.Constants#JDK_YES

The following examples show how to use com.sun.org.apache.xerces.internal.impl.Constants#JDK_YES . 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: XMLSecurityManager.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 2
Source File: XMLSecurityManager.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 3
Source File: XMLSecurityManager.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 4
Source File: XMLSecurityManager.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 5
Source File: XMLSecurityManager.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 6
Source File: XMLSecurityManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 7
Source File: XMLSecurityManager.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 8
Source File: XMLSecurityManager.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 9
Source File: XMLSecurityManager.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 10
Source File: XMLSecurityManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}
 
Example 11
Source File: XMLSecurityManager.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the value of a property by its index
 *
 * @param index the index of the property
 * @param state the state of the property
 * @param value the value of the property
 */
public void setLimit(int index, State state, int value) {
    if (index == indexEntityCountInfo) {
        //if it's explicitly set, it's treated as yes no matter the value
        printEntityCountInfo = Constants.JDK_YES;
    } else {
        //only update if it shall override
        if (state.compareTo(states[index]) >= 0) {
            values[index] = value;
            states[index] = state;
            isSet[index] = true;
        }
    }
}