public class ClippingFilter extends ChainingSaxFilter
| Constructor and Description |
|---|
ClippingFilter()
The default constructor
|
ClippingFilter(XMLReader parent)
Constructor that takes XMLReader object as argument
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int len) |
void |
comment(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName)
Filters the Namespace URI for end-element events.
|
String |
getName()
Returns a displayable name for the component.
|
List<List<String>> |
getXPath()
Retrives the Xpath set on this clipping filter
|
boolean |
notAcceptable(String qName)
Checks to see if element is in notAcceptable array
|
void |
setAcceptableQNames(Set notAcceptable) |
void |
setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
This method is called on a component that is being used by the portlet at the
begining of the action request it will be used in.
|
void |
setComments(String[] newComments)
Set the comment for this clipping filter
|
void |
setElement(String[] newElement)
Set elemets Lists for clipping
|
void |
setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
This method is called on a component that is being used by the portlet at the
begining of the render request it will be used in.
|
void |
setXPath(String[] path)
Set xPath Lists for clipping
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Filters the Namespace URI for start-element events.
|
clearData, endCDATA, endDTD, endEntity, getLexicalHandler, parse, parse, setLexicalHandler, setParent, startCDATA, startDTD, startEntityendDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic ClippingFilter()
public ClippingFilter(XMLReader parent)
parent - the (@link XMLReader) objectpublic void setXPath(String[] path)
path - array of Strings containing pathspublic void setElement(String[] newElement)
newElement - array of Strings containing elementspublic void setComments(String[] newComments)
newComments - array of Strings containing commentspublic List<List<String>> getXPath()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImpluri - The element's Namespace URI, or the empty string.localName - The element's local name, or the empty string.qName - The element's qualified (prefixed) name, or the empty string.SAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImpluri - The element's Namespace URI, or the empty string.localName - The element's local name, or the empty string.qName - The element's qualified (prefixed) name, or the empty string.SAXExceptionpublic void characters(char[] ch,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class ChainingSaxFilterSAXExceptionXMLFilterImpl.characters(char[], int, int)public void setAcceptableQNames(Set notAcceptable)
public boolean notAcceptable(String qName)
qName - the qName as Stringpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class ChainingSaxFilterSAXExceptionLexicalHandler.comment(char[], int, int)public String getName()
ProxyComponentpublic void setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
ProxyComponentsetRenderData in interface ProxyComponentsetRenderData in class ChainingSaxFilterpublic void setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
ProxyComponentsetActionData in interface ProxyComponentsetActionData in class ChainingSaxFilterCopyright © 2016 Jasig. All Rights Reserved.