Package net.sourceforge.pmd.lang.xml
Class XmlParserOptions
- java.lang.Object
-
- net.sourceforge.pmd.lang.ParserOptions
-
- net.sourceforge.pmd.lang.xml.XmlParserOptions
-
public class XmlParserOptions extends net.sourceforge.pmd.lang.ParserOptions
-
-
Field Summary
Fields Modifier and Type Field Description static net.sourceforge.pmd.properties.BooleanPropertyCOALESCING_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyEXPAND_ENTITY_REFERENCES_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyIGNORING_COMMENTS_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyIGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyLOOKUP_DESCRIPTOR_DTDstatic net.sourceforge.pmd.properties.BooleanPropertyNAMESPACE_AWARE_DESCRIPTORstatic org.xml.sax.EntityResolverSILENT_ENTITY_RESOLVERstatic net.sourceforge.pmd.properties.BooleanPropertyVALIDATING_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyXINCLUDE_AWARE_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description XmlParserOptions()XmlParserOptions(net.sourceforge.pmd.Rule rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.xml.sax.EntityResolvergetEntityResolver()inthashCode()booleanisCoalescing()booleanisExpandEntityReferences()booleanisIgnoringComments()booleanisIgnoringElementContentWhitespace()booleanisLookupDescriptorDoc()booleanisNamespaceAware()booleanisValidating()booleanisXincludeAware()voidsetCoalescing(boolean coalescing)voidsetExpandEntityReferences(boolean expandEntityReferences)voidsetIgnoringComments(boolean ignoringComments)voidsetIgnoringElementContentWhitespace(boolean ignoringElementContentWhitespace)voidsetLookupDescriptorDoc(boolean lookupDescriptorDoc)voidsetNamespaceAware(boolean namespaceAware)voidsetValidating(boolean validating)voidsetXincludeAware(boolean xincludeAware)
-
-
-
Field Detail
-
COALESCING_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty COALESCING_DESCRIPTOR
-
EXPAND_ENTITY_REFERENCES_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty EXPAND_ENTITY_REFERENCES_DESCRIPTOR
-
IGNORING_COMMENTS_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty IGNORING_COMMENTS_DESCRIPTOR
-
IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
-
NAMESPACE_AWARE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty NAMESPACE_AWARE_DESCRIPTOR
-
VALIDATING_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty VALIDATING_DESCRIPTOR
-
XINCLUDE_AWARE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty XINCLUDE_AWARE_DESCRIPTOR
-
LOOKUP_DESCRIPTOR_DTD
public static final net.sourceforge.pmd.properties.BooleanProperty LOOKUP_DESCRIPTOR_DTD
-
SILENT_ENTITY_RESOLVER
public static final org.xml.sax.EntityResolver SILENT_ENTITY_RESOLVER
-
-
Method Detail
-
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Returns:
- the configured entity resolver. If
lookupDescriptorDocis false it would normally force the XML parser to use its own resolver
-
isLookupDescriptorDoc
public boolean isLookupDescriptorDoc()
-
setLookupDescriptorDoc
public void setLookupDescriptorDoc(boolean lookupDescriptorDoc)
-
isCoalescing
public boolean isCoalescing()
-
setCoalescing
public void setCoalescing(boolean coalescing)
-
isExpandEntityReferences
public boolean isExpandEntityReferences()
-
setExpandEntityReferences
public void setExpandEntityReferences(boolean expandEntityReferences)
-
isIgnoringComments
public boolean isIgnoringComments()
-
setIgnoringComments
public void setIgnoringComments(boolean ignoringComments)
-
isIgnoringElementContentWhitespace
public boolean isIgnoringElementContentWhitespace()
-
setIgnoringElementContentWhitespace
public void setIgnoringElementContentWhitespace(boolean ignoringElementContentWhitespace)
-
isNamespaceAware
public boolean isNamespaceAware()
-
setNamespaceAware
public void setNamespaceAware(boolean namespaceAware)
-
isValidating
public boolean isValidating()
-
setValidating
public void setValidating(boolean validating)
-
isXincludeAware
public boolean isXincludeAware()
-
setXincludeAware
public void setXincludeAware(boolean xincludeAware)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classnet.sourceforge.pmd.lang.ParserOptions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classnet.sourceforge.pmd.lang.ParserOptions
-
-