|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
edu.wisc.my.webproxy.beans.filtering.ClippingFilter
public class ClippingFilter
The clipping filter uses an XPath expression to clip a subset of the Document
| Constructor Summary | |
|---|---|
ClippingFilter()
The default constructor |
|
ClippingFilter(XMLReader parent)
Constructor that takes XMLReader object as argument |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter |
|---|
clearData, endCDATA, endDTD, endEntity, getLexicalHandler, parse, parse, setLexicalHandler, setParent, startCDATA, startDTD, startEntity |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
endDocument, 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, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClippingFilter()
public ClippingFilter(XMLReader parent)
parent - the (@link XMLReader) object| Method Detail |
|---|
public 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.
SAXException
public 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.
SAXException
public 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 String
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class ChainingSaxFilterSAXExceptionLexicalHandler.comment(char[], int, int)public String getName()
ProxyComponent
public void setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
ProxyComponent
setRenderData in interface ProxyComponentsetRenderData in class ChainingSaxFilter
public void setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
ProxyComponent
setActionData in interface ProxyComponentsetActionData in class ChainingSaxFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||