org.apache.cocoon.portal.tools.transformation
Class CheckAccessTransformer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.AbstractSAXTransformer
org.apache.cocoon.portal.tools.transformation.CheckAccessTransformer
- All Implemented Interfaces:
- Poolable, Recyclable, Disposable, Component, Configurable, LogEnabled, Serviceable, SitemapModelComponent, Transformer, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
public class CheckAccessTransformer
- extends AbstractSAXTransformer
- implements Disposable
- Version:
- $Id: CheckAccessTransformer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, emptyAttributes, ignoreEmptyCharacters, ignoreEventsCount, ignoreHooksCount, ignoreWhitespaces, manager, namespaceURI, objectModel, parameters, recorderStack, request, resolver, response, source, stack |
Fields inherited from interface org.apache.cocoon.transformation.Transformer |
ROLE |
Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
addRecorder, characters, comment, configure, endCDATA, endDocument, endDTD, endEntity, endParametersRecording, endParametersRecording, endPrefixMapping, endRecording, endSAXRecording, endSerializedXMLRecording, endTextRecording, endTransformingElement, findPrefixMapping, getMutableAttributes, ignorableWhitespace, processingInstruction, recycle, removeRecorder, sendEndElementEvent, sendEndElementEventNS, sendEndPrefixMapping, sendEvents, sendParametersEvents, sendStartElementEvent, sendStartElementEvent, sendStartElementEventNS, sendStartElementEventNS, sendStartPrefixMapping, sendTextEvent, setDocumentLocator, setup, setupTransforming, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startParametersRecording, startPrefixMapping, startRecording, startSAXRecording, startSerializedXMLRecording, startTextRecording, startTransformingElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RIGHTS_NAMESPACE_URI
public static final String RIGHTS_NAMESPACE_URI
- See Also:
- Constant Field Values
ACCESS_TAG
public static final String ACCESS_TAG
- See Also:
- Constant Field Values
RIGHT_ID
public static final String RIGHT_ID
- See Also:
- Constant Field Values
CheckAccessTransformer
public CheckAccessTransformer()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Overrides:
service
in class AbstractSAXTransformer
- Throws:
ServiceException
startElement
public void startElement(String uri,
String name,
String raw,
Attributes attr)
throws SAXException
- Description copied from class:
AbstractSAXTransformer
- Process the SAX event. The namespace of the event is checked.
If it is the defined namespace for this transformer,
the
AbstractSAXTransformer.startTransformingElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
hook is called.
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class AbstractSAXTransformer
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.attr
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
- Throws:
SAXException
- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
endElement
public void endElement(String uri,
String name,
String raw)
throws SAXException
- Description copied from class:
AbstractSAXTransformer
- Process the SAX event. The namespace of the event is checked.
If it is the defined namespace for this transformer,
the
AbstractSAXTransformer.endTransformingElement(java.lang.String, java.lang.String, java.lang.String)
hook is called.
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class AbstractSAXTransformer
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
- Throws:
SAXException
- See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- Overrides:
dispose
in class AbstractSAXTransformer
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.