Java Code Examples for com.sun.org.apache.xerces.internal.utils.XMLSecurityManager.Limit#ordinal()
The following examples show how to use
com.sun.org.apache.xerces.internal.utils.XMLSecurityManager.Limit#ordinal() .
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: XMLLimitAnalyzer.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 2
Source File: XMLLimitAnalyzer.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 3
Source File: XMLLimitAnalyzer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 4
Source File: XMLLimitAnalyzer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 5
Source File: XMLLimitAnalyzer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 6
Source File: XMLLimitAnalyzer.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 7
Source File: XMLLimitAnalyzer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 8
Source File: XMLLimitAnalyzer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Stop tracking the entity * @param limit the limit property * @param name the name of an entity */ public void endEntity(Limit limit, String name) { entityStart = ""; Map<String, Integer> cache = caches[limit.ordinal()]; if (cache != null) { cache.remove(name); } }
Example 9
Source File: XMLLimitAnalyzer.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Resets the current value of the specified limit. * @param limit The limit to be reset. */ public void reset(Limit limit) { if (limit.ordinal() == Limit.TOTAL_ENTITY_SIZE_LIMIT.ordinal()) { totalValue[limit.ordinal()] = 0; } else if (limit.ordinal() == Limit.GENERAL_ENTITY_SIZE_LIMIT.ordinal()) { names[limit.ordinal()] = null; values[limit.ordinal()] = 0; caches[limit.ordinal()] = null; totalValue[limit.ordinal()] = 0; } }
Example 10
Source File: XMLLimitAnalyzer.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Resets the current value of the specified limit. * @param limit The limit to be reset. */ public void reset(Limit limit) { if (limit.ordinal() == Limit.TOTAL_ENTITY_SIZE_LIMIT.ordinal()) { totalValue[limit.ordinal()] = 0; } }
Example 11
Source File: XMLLimitAnalyzer.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Return the value of the current max count for the specified property * * @param limit the property * @return the value of the property */ public int getValue(Limit limit) { return values[limit.ordinal()]; }
Example 12
Source File: XMLLimitAnalyzer.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 13
Source File: XMLLimitAnalyzer.java From JDKSourceCode1.8 with MIT License | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 14
Source File: XMLLimitAnalyzer.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 15
Source File: XMLLimitAnalyzer.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 16
Source File: XMLLimitAnalyzer.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 17
Source File: XMLLimitAnalyzer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 18
Source File: XMLLimitAnalyzer.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Return the value of the current max count for the specified property * * @param limit the property * @return the value of the property */ public int getValue(Limit limit) { return values[limit.ordinal()]; }
Example 19
Source File: XMLLimitAnalyzer.java From Bytecoder with Apache License 2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }
Example 20
Source File: XMLLimitAnalyzer.java From jdk1.8-source-analysis with Apache License 2.0 | 2 votes |
/** * Return the total value accumulated so far * * @param limit the property * @return the accumulated value of the property */ public int getTotalValue(Limit limit) { return totalValue[limit.ordinal()]; }