Package org.apache.tapestry5.dom
Class AbstractMarkupModel
java.lang.Object
org.apache.tapestry5.dom.AbstractMarkupModel
- All Implemented Interfaces:
MarkupModel
- Direct Known Subclasses:
DefaultMarkupModel
,Html5MarkupModel
,XMLMarkupModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPasses all characters but '<', '>' and '&' through unchanged.void
encodeQuoted
(String content, StringBuilder builder) Encodes the characters into the buffer for use in a quoted value (that is, an attribute value), converting control characters (such as '<') into corresponding entities (such as <).char
What character is used when generating quotes around attribute values? This will be either a single or double quote.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.tapestry5.dom.MarkupModel
getEndTagStyle, isXML
-
Constructor Details
-
AbstractMarkupModel
-
-
Method Details
-
getAttributeQuote
Description copied from interface:MarkupModel
What character is used when generating quotes around attribute values? This will be either a single or double quote.- Specified by:
getAttributeQuote
in interfaceMarkupModel
- Returns:
- single (') or double (") quote
-
encode
Passes all characters but '<', '>' and '&' through unchanged.- Specified by:
encode
in interfaceMarkupModel
- Parameters:
content
- to be filtered- Returns:
- the filtered content
-
encodeQuoted
Description copied from interface:MarkupModel
Encodes the characters into the buffer for use in a quoted value (that is, an attribute value), converting control characters (such as '<') into corresponding entities (such as <). In addition, double quotes must be quoted or otherwise escaped.- Specified by:
encodeQuoted
in interfaceMarkupModel
- Parameters:
content
- to be filteredbuilder
- to receive the filtered content
-