| |
|
| java.lang.Object org.apache.commons.betwixt.strategy.MixedContentEncodingStrategy org.apache.commons.betwixt.strategy.BaseMixedContentEncodingStrategy
Method Summary | |
public String | encode(String bodyContent, ElementDescriptor element) Encodes the given body content by either escaping the character data
or by encoding within a CDATA section. | abstract protected boolean | encodeAsCDATA(ElementDescriptor element) Should the element described by the given
ElementDescriptor be encoded as a CDATA
section?
Usage: subclasses should provide a strategy
to determine whether an element should be encoded using a
CDATA section. | protected String | encodeInCDATA(String bodyContent) Wraps the given content into a CDATA section. | protected String | escapeCharacters(String bodyContent) Escapes a sequence of body content. |
encodeAsCDATA | abstract protected boolean encodeAsCDATA(ElementDescriptor element)(Code) | | Should the element described by the given
ElementDescriptor be encoded as a CDATA
section?
Usage: subclasses should provide a strategy
to determine whether an element should be encoded using a
CDATA section.
Parameters: element - ElementDescriptor , not null true if the element should be encoded as a CDATA section |
encodeInCDATA | protected String encodeInCDATA(String bodyContent)(Code) | | Wraps the given content into a CDATA section.
Parameters: bodyContent - the content to be encoded into a CDATAsection the content wrapped inside a CDATA section, not null |
escapeCharacters | protected String escapeCharacters(String bodyContent)(Code) | | Escapes a sequence of body content.
Parameters: bodyContent - the content whose character data should be escaped, not null the escaped character data, not null |
|
|
|