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.BooleanProperty
COALESCING_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
EXPAND_ENTITY_REFERENCES_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
IGNORING_COMMENTS_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
LOOKUP_DESCRIPTOR_DTD
static net.sourceforge.pmd.properties.BooleanProperty
NAMESPACE_AWARE_DESCRIPTOR
static org.xml.sax.EntityResolver
SILENT_ENTITY_RESOLVER
static net.sourceforge.pmd.properties.BooleanProperty
VALIDATING_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
XINCLUDE_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 boolean
equals(java.lang.Object obj)
org.xml.sax.EntityResolver
getEntityResolver()
int
hashCode()
boolean
isCoalescing()
boolean
isExpandEntityReferences()
boolean
isIgnoringComments()
boolean
isIgnoringElementContentWhitespace()
boolean
isLookupDescriptorDoc()
boolean
isNamespaceAware()
boolean
isValidating()
boolean
isXincludeAware()
void
setCoalescing(boolean coalescing)
void
setExpandEntityReferences(boolean expandEntityReferences)
void
setIgnoringComments(boolean ignoringComments)
void
setIgnoringElementContentWhitespace(boolean ignoringElementContentWhitespace)
void
setLookupDescriptorDoc(boolean lookupDescriptorDoc)
void
setNamespaceAware(boolean namespaceAware)
void
setValidating(boolean validating)
void
setXincludeAware(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
lookupDescriptorDoc
is 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:
hashCode
in classnet.sourceforge.pmd.lang.ParserOptions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classnet.sourceforge.pmd.lang.ParserOptions
-
-