TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.loaders.cbe
Class XMLCollector

java.lang.Object
  extended byorg.eclipse.hyades.loaders.cbe.XMLCollector
All Implemented Interfaces:
XMLFragmentLoader

public class XMLCollector
extends java.lang.Object
implements XMLFragmentLoader


Nested Class Summary
 class XMLCollector.Attributes
           
 class XMLCollector.Element
           
 
Constructor Summary
XMLCollector()
           
 
Method Summary
 void addAttribute(java.lang.String name, java.lang.String value)
           
 void addCharacters(char[] data, int offset, int length)
           
 void addYourselfInContext()
          This is called on end of root element of each fragment
 void cleanUp()
          This is called at the end of the document.
 boolean done()
           
 void endChild(java.lang.String name)
           
 java.lang.String getTargetFeatureName()
           
 java.lang.String getTargetFeatureValue()
           
 void initialize(HierarchyContext context, java.lang.String name)
          This is called on start of root element of each fragment
 void startChild(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCollector

public XMLCollector()
Method Detail

getTargetFeatureName

public java.lang.String getTargetFeatureName()
Returns:

getTargetFeatureValue

public java.lang.String getTargetFeatureValue()
Returns:

addAttribute

public void addAttribute(java.lang.String name,
                         java.lang.String value)
Specified by:
addAttribute in interface XMLFragmentLoader

addCharacters

public void addCharacters(char[] data,
                          int offset,
                          int length)
Specified by:
addCharacters in interface XMLFragmentLoader
Parameters:
data -
offset -
length -

addYourselfInContext

public void addYourselfInContext()
Description copied from interface: XMLFragmentLoader
This is called on end of root element of each fragment

Specified by:
addYourselfInContext in interface XMLFragmentLoader

cleanUp

public void cleanUp()
Description copied from interface: XMLFragmentLoader
This is called at the end of the document.

Specified by:
cleanUp in interface XMLFragmentLoader

done

public boolean done()
Returns:

endChild

public void endChild(java.lang.String name)
Specified by:
endChild in interface XMLFragmentLoader
Parameters:
name -

initialize

public void initialize(HierarchyContext context,
                       java.lang.String name)
Description copied from interface: XMLFragmentLoader
This is called on start of root element of each fragment

Specified by:
initialize in interface XMLFragmentLoader

startChild

public void startChild(java.lang.String name)
Specified by:
startChild in interface XMLFragmentLoader
Parameters:
name -

TPTP 4.4.0 Platform Project
Public API Specification