Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.dita
Class DITAElementLocator

java.lang.Object
  extended by ro.sync.ecss.extensions.api.link.ElementLocator
      extended by ro.sync.ecss.extensions.dita.DITAElementLocator

public class DITAElementLocator
extends ElementLocator

An implementation for a DITA element when the referred element is not a topic. So the link has the following pattern: topicID/elementID


Field Summary
 
Fields inherited from class ro.sync.ecss.extensions.api.link.ElementLocator
link
 
Constructor Summary
DITAElementLocator(String link)
          Constructor.
 
Method Summary
 void endElement(String uri, String localName, String name)
          Notification received when the end of an element has been encountered.
 boolean startElement(String uri, String localName, String name, Attr[] atts)
          Notification received when the beginning of an element has been encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DITAElementLocator

public DITAElementLocator(String link)
Constructor.

Parameters:
link - The link used to identify the element.
Method Detail

endElement

public void endElement(String uri,
                       String localName,
                       String name)
Description copied from class: ElementLocator
Notification received when the end of an element has been encountered. This method is invoked at the end of every element in the XML document; an event will be fired for every endElement (even when the element is empty).

Specified by:
endElement in class ElementLocator
Parameters:
uri - the namespace URI, or the empty string if the element has no namespace URI or if namespace processing is not being performed
localName - the local name of the element
name - the qualified XML name of the element
See Also:
ElementLocator.endElement(java.lang.String, java.lang.String, java.lang.String)

startElement

public boolean startElement(String uri,
                            String localName,
                            String name,
                            Attr[] atts)
Description copied from class: ElementLocator
Notification received when the beginning of an element has been encountered. This method is invoked at the beginning of every element in the XML document; an event will be fired for every startElement (even when the element is empty).

Specified by:
startElement in class ElementLocator
Parameters:
uri - the namespace URI, or the empty string if the element has no namespace URI or if namespace processing is not being performed
localName - the local name of the element
name - the qualified name of the element
atts - an array with the attributes attached to the element. If there are no attributes, it shall be empty. The attributes are represented as Attr objects.
Returns:
true if the current element is indicated by the link.
See Also:
ElementLocator.startElement(java.lang.String, java.lang.String, java.lang.String, ro.sync.ecss.extensions.api.link.Attr[])

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.