|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectat.newmedialab.ldpath.model.functions.CleanHtmlFunction<Node>
public class CleanHtmlFunction<Node>
Function to clean up HTML and remove all script and style elements from the content.
Author: Sebastian Schaffert
| Constructor Summary | |
|---|---|
CleanHtmlFunction()
|
|
| Method Summary | |
|---|---|
Collection<Node> |
apply(RDFBackend<Node> backend,
Node context,
Collection<Node>... args)
Apply the function to the list of nodes passed as arguments and return the result as type T. |
String |
getDescription()
A short human-readable description of what the node function does. |
String |
getPathExpression(RDFBackend<Node> backend)
Return the name of the NodeFunction for registration in the function registry |
String |
getSignature()
A string describing the signature of this node function, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CleanHtmlFunction()
| Method Detail |
|---|
public Collection<Node> apply(RDFBackend<Node> backend,
Node context,
Collection<Node>... args)
throws IllegalArgumentException
apply in interface NodeFunction<Collection<Node>,Node>args - a list of KiWiNodes
IllegalArgumentExceptionpublic String getPathExpression(RDFBackend<Node> backend)
getPathExpression in interface LDPathConstruct<Node>backend -
public String getSignature()
getSignature in interface NodeFunction<Collection<Node>,Node>public String getDescription()
getDescription in interface NodeFunction<Collection<Node>,Node>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||