Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


javax.ide.extension
Class MetaClassVisitor

java.lang.Object
  extended by javax.ide.extension.ElementVisitor
      extended by javax.ide.extension.MetaClassVisitor


public abstract class MetaClassVisitor
extends ElementVisitor

An abstract implementation of a visitor for manifest elements which represent meta classes.

Subclasses provide an implementation of the metaClass( ElementContext, MetaClass ) to process the meta class created for the visited xml element.


Nested Class Summary

 

Nested classes/interfaces inherited from class javax.ide.extension.ElementVisitor
ElementVisitor.ResourceBundleProvider

 

Field Summary

 

Fields inherited from class javax.ide.extension.ElementVisitor
KEY_LOCATOR

 

Constructor Summary
MetaClassVisitor()
           

 

Method Summary
 void end(ElementEndContext ctx)
          Visit the end tag of an xml element.
protected  java.lang.ClassLoader getMetaClassLoader(ElementContext context, java.lang.String className)
          Get the classloader that should be associated with the specified class.
protected abstract  void metaClass(ElementContext context, MetaClass mc)
          Called when a meta class is created.
 void start(ElementStartContext ctx)
          Visit the start tag of an xml element.

 

Methods inherited from class javax.ide.extension.ElementVisitor
getAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProvider

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

MetaClassVisitor

public MetaClassVisitor()

Method Detail

start

public final void start(ElementStartContext ctx)
Description copied from class: ElementVisitor
Visit the start tag of an xml element.

This implementation does nothing.

Overrides:
start in class ElementVisitor
Parameters:
ctx - information about the xml start tag.

end

public final void end(ElementEndContext ctx)
Description copied from class: ElementVisitor
Visit the end tag of an xml element.

This implementation does nothing.

Overrides:
end in class ElementVisitor
Parameters:
ctx - information about the xml end tag.

metaClass

protected abstract void metaClass(ElementContext context,
                                  MetaClass mc)
Called when a meta class is created. Subclasses will usually process or store this meta class object.
Parameters:
context - the xml context in which the meta class was created.
mc - the created meta class.

getMetaClassLoader

protected java.lang.ClassLoader getMetaClassLoader(ElementContext context,
                                                   java.lang.String className)
Get the classloader that should be associated with the specified class. This implementation returns the current classloader from the context.
Parameters:
context - the current parsing context.
className - the name of the class.
Returns:
a class loader to use.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.