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
public abstract class AbstractMarkupModel extends java.lang.Object implements MarkupModel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMarkupModel(boolean useApostropheForAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringencode(java.lang.String content)Passes all characters but '<', '>' and '&' through unchanged.voidencodeQuoted(java.lang.String content, java.lang.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 <).chargetAttributeQuote()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 Detail
-
AbstractMarkupModel
protected AbstractMarkupModel(boolean useApostropheForAttributes)
-
-
Method Detail
-
getAttributeQuote
public char getAttributeQuote()
Description copied from interface:MarkupModelWhat character is used when generating quotes around attribute values? This will be either a single or double quote.- Specified by:
getAttributeQuotein interfaceMarkupModel- Returns:
- single (') or double (") quote
-
encode
public java.lang.String encode(java.lang.String content)
Passes all characters but '<', '>' and '&' through unchanged.- Specified by:
encodein interfaceMarkupModel- Parameters:
content- to be filtered- Returns:
- the filtered content
-
encodeQuoted
public void encodeQuoted(java.lang.String content, java.lang.StringBuilder builder)
Description copied from interface:MarkupModelEncodes 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:
encodeQuotedin interfaceMarkupModel- Parameters:
content- to be filteredbuilder- to receive the filtered content
-
-