Methods Summary |
---|
public int | getElementAttrLimit()
return fElementAttributeLimit;
|
public int | getEntityExpansionLimit()Returns the number of entity expansions
that the parser permits in a document.
return entityExpansionLimit;
|
public int | getMaxOccurNodeLimit()Returns the limit of the number of content model nodes
that may be created when building a grammar for a W3C
XML Schema that contains maxOccurs attributes with values
other than "unbounded".
return maxOccurLimit;
|
private void | readSystemProperties()
//TODO: also read SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT
try {
String value = System.getProperty(Constants.ENTITY_EXPANSION_LIMIT);
if(value != null && !value.equals("")){
entityExpansionLimit = Integer.parseInt(value);
if (entityExpansionLimit < 0)
entityExpansionLimit = DEFAULT_ENTITY_EXPANSION_LIMIT;
}
else
entityExpansionLimit = DEFAULT_ENTITY_EXPANSION_LIMIT;
}catch(Exception ex){}
try {
String value = System.getProperty(Constants.MAX_OCCUR_LIMIT);
if(value != null && !value.equals("")){
maxOccurLimit = Integer.parseInt(value);
if (maxOccurLimit < 0)
maxOccurLimit = DEFAULT_MAX_OCCUR_NODE_LIMIT;
}
else
maxOccurLimit = DEFAULT_MAX_OCCUR_NODE_LIMIT;
}catch(Exception ex){}
try {
String value = System.getProperty(Constants.SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT);
if(value != null && !value.equals("")){
fElementAttributeLimit = Integer.parseInt(value);
if ( fElementAttributeLimit < 0)
fElementAttributeLimit = DEFAULT_ELEMENT_ATTRIBUTE_LIMIT;
}
else
fElementAttributeLimit = DEFAULT_ELEMENT_ATTRIBUTE_LIMIT;
}catch(Exception ex){}
|
public void | setElementAttrLimit(int limit)
fElementAttributeLimit = limit;
|
public void | setEntityExpansionLimit(int limit)Sets the number of entity expansions that the
parser should permit in a document.
entityExpansionLimit = limit;
|
public void | setMaxOccurNodeLimit(int limit)Sets the limit of the number of content model nodes
that may be created when building a grammar for a W3C
XML Schema that contains maxOccurs attributes with values
other than "unbounded".
maxOccurLimit = limit;
|