info.magnolia.jcr.wrapper
Class HTMLEscapingContentDecorator

java.lang.Object
  extended by info.magnolia.jcr.decoration.AbstractContentDecorator
      extended by info.magnolia.jcr.wrapper.HTMLEscapingContentDecorator
All Implemented Interfaces:
ContentDecorator

public class HTMLEscapingContentDecorator
extends AbstractContentDecorator

HTML escaping content decorator for use by node and property wrapper classes.


Constructor Summary
HTMLEscapingContentDecorator(boolean transformLineBreaks)
           
 
Method Summary
 String decorate(String raw)
           
 boolean getTransformLineBreaks()
           
 boolean isMultipleWrapEnabled()
          Tells if multiple wrapping with this content decorator is enabled.
 javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 javax.jcr.Property wrapProperty(javax.jcr.Property property)
           
 
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator
evaluateNode, evaluateProperty, wrapNodeIterator, wrapPropertyIterator, wrapSession, wrapWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEscapingContentDecorator

public HTMLEscapingContentDecorator(boolean transformLineBreaks)
Method Detail

wrapNode

public javax.jcr.Node wrapNode(javax.jcr.Node node)
Specified by:
wrapNode in interface ContentDecorator
Overrides:
wrapNode in class AbstractContentDecorator

wrapProperty

public javax.jcr.Property wrapProperty(javax.jcr.Property property)
Specified by:
wrapProperty in interface ContentDecorator
Overrides:
wrapProperty in class AbstractContentDecorator

getTransformLineBreaks

public boolean getTransformLineBreaks()

decorate

public String decorate(String raw)

isMultipleWrapEnabled

public boolean isMultipleWrapEnabled()
Description copied from interface: ContentDecorator
Tells if multiple wrapping with this content decorator is enabled.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.