org.apache.cocoon.xml.xlink
Class ExtendedXLinkPipe
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLProducer
|
+--org.apache.cocoon.xml.AbstractXMLPipe
|
+--org.apache.cocoon.xml.xlink.XLinkPipe
|
+--org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, XLinkHandler, XMLConsumer, XMLPipe, XMLProducer
- Direct Known Subclasses:
- LinkSerializer, LinkTranslator
- public abstract class ExtendedXLinkPipe
- extends XLinkPipe
This class extends the XLink semantic capabilities to understand those
elements that are have default linking semantics associated.
This class reacts on 'href', 'src', and 'background' attributes and is able
to understand the semantics of XHTML/WML/SMIL/SVG and all the rest of the
languages that use either XLink of the above attributes.
NOTE: this class is clearly a hack and is not future compatible, but
since many XML formats to date are not compatible with the XLink semantics
this is what we have to do to live in the bleeding edge. Once there will
be a way to remove this, that will be a happy day for XML and for Cocoon too.
- Version:
- CVS $Id: ExtendedXLinkPipe.java,v 1.4.2.1 2002/08/15 03:13:46 vgritsenko Exp $
- Author:
- Stefano Mazzocchi, Vadim Gritsenko
Fields inherited from class org.apache.cocoon.xml.xlink.XLinkPipe |
XLINK_ACTUATE, XLINK_ARCROLE, XLINK_FROM, XLINK_HREF, XLINK_LABEL, XLINK_NAMESPACE_URI, XLINK_ROLE, XLINK_SHOW, XLINK_TITLE, XLINK_TO, XLINK_TYPE, XLINK_TYPE_ARC, XLINK_TYPE_EXTENDED, XLINK_TYPE_LOCATOR, XLINK_TYPE_RESOURCE, XLINK_TYPE_SIMPLE, XLINK_TYPE_TITLE |
Method Summary |
void |
simpleLink(java.lang.String href,
java.lang.String role,
java.lang.String arcrole,
java.lang.String title,
java.lang.String show,
java.lang.String actuate,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
|
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
Receive notification of the beginning of an element. |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedXLinkPipe
public ExtendedXLinkPipe()
startElement
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the beginning of an element.
- Overrides:
startElement
in class XLinkPipe
- Following copied from class:
org.apache.cocoon.xml.AbstractXMLPipe
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.loc
- 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.a
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
simpleLink
public void simpleLink(java.lang.String href,
java.lang.String role,
java.lang.String arcrole,
java.lang.String title,
java.lang.String show,
java.lang.String actuate,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Overrides:
simpleLink
in class XLinkPipe
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.