|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.attoparser.markup.html.HtmlParsingConfiguration
public final class HtmlParsingConfiguration
Constructor Summary | |
---|---|
HtmlParsingConfiguration()
|
Method Summary | |
---|---|
HtmlParsingConfiguration |
clone()
|
boolean |
getRequireUniqueAttributesInElement()
Determines whether attributes should never appear duplicated in elements. |
boolean |
getRequireXmlWellFormedAttributeValues()
Determine whether element attributes will be required to be well-formed from the XML standpoint. |
MarkupParsingConfiguration.UniqueRootElementPresence |
getUniqueRootElementPresence()
This value determines whether it will be required that the document has a unique root element. |
boolean |
isCaseSensitive()
Determines whether validations performed on the parsed document should be case sensitive or not (e.g. attribute names, document root element name, element open vs close elements, etc.) |
void |
setCaseSensitive(boolean caseSensitive)
|
void |
setRequireUniqueAttributesInElement(boolean requireUniqueAttributesInElement)
|
void |
setRequireXmlWellFormedAttributeValues(boolean requireXmlWellFormedAttributeValues)
|
void |
setUniqueRootElementPresence(MarkupParsingConfiguration.UniqueRootElementPresence uniqueRootElementPresence)
|
protected static void |
validateNotNull(Object obj,
String message)
|
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlParsingConfiguration()
Method Detail |
---|
public boolean isCaseSensitive()
Determines whether validations performed on the parsed document should be case sensitive or not (e.g. attribute names, document root element name, element open vs close elements, etc.)
Default is false.
public void setCaseSensitive(boolean caseSensitive)
public boolean getRequireXmlWellFormedAttributeValues()
Determine whether element attributes will be required to be well-formed from the XML standpoint. This means:
Default is false.
public void setRequireXmlWellFormedAttributeValues(boolean requireXmlWellFormedAttributeValues)
public boolean getRequireUniqueAttributesInElement()
Determines whether attributes should never appear duplicated in elements.
Default is false.
public void setRequireUniqueAttributesInElement(boolean requireUniqueAttributesInElement)
public MarkupParsingConfiguration.UniqueRootElementPresence getUniqueRootElementPresence()
This value determines whether it will be required that the document has a unique root element.
If set to MarkupParsingConfiguration.UniqueRootElementPresence.REQUIRED_ALWAYS
, then a document with
more than one elements at the root level will never be considered valid. And if
there is a DOCTYPE clause, it will be checked that the root name established
at the DOCTYPE clause is the same as the document's element root.
If set to MarkupParsingConfiguration.UniqueRootElementPresence.DEPENDS_ON_PROLOG_DOCTYPE
, then:
Default value is MarkupParsingConfiguration.UniqueRootElementPresence.DEPENDS_ON_PROLOG_DOCTYPE
.
public void setUniqueRootElementPresence(MarkupParsingConfiguration.UniqueRootElementPresence uniqueRootElementPresence)
public HtmlParsingConfiguration clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
protected static void validateNotNull(Object obj, String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |