com.objectwave.tools
Class MetaModel

java.lang.Object
  |
  +--com.objectwave.tools.MetaModel

public abstract class MetaModel
extends java.lang.Object

Used to parse objects into the objectwave source model.

Version:
1.0

Constructor Summary
MetaModel()
           
 
Method Summary
 ClassSpec getClassSpec(ClassElement[] els)
          A helper routine to get the class spec in the collection of ClassElements
protected  java.util.Vector initialClassParts(ClassSpec spec)
          Get all of the intial file elements of this class.
abstract  ClassElement[] parseSource(java.lang.Object type)
          Get the ClassElements from the type.
abstract  ClassElement[] parseSource(java.lang.Object type, boolean includePackage)
          Get the ClassElements from the type.
abstract  ClassElement[] parseSource(java.lang.String className)
          Get the ClassElements from class name.
abstract  void save(java.lang.Object type, ClassElement[] els)
          Update the 'type' with the new class definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaModel

public MetaModel()
Method Detail

getClassSpec

public ClassSpec getClassSpec(ClassElement[] els)
A helper routine to get the class spec in the collection of ClassElements


initialClassParts

protected java.util.Vector initialClassParts(ClassSpec spec)
Get all of the intial file elements of this class.


parseSource

public abstract ClassElement[] parseSource(java.lang.Object type)
Get the ClassElements from the type.

Parameters:
type - Object A usage specific object that represents the class.

parseSource

public abstract ClassElement[] parseSource(java.lang.Object type,
                                           boolean includePackage)
Get the ClassElements from the type.

Parameters:
type - Object A usage specific object that represents the class.

parseSource

public abstract ClassElement[] parseSource(java.lang.String className)
Get the ClassElements from class name.

Parameters:
className - Fully qualified class name.

save

public abstract void save(java.lang.Object type,
                          ClassElement[] els)
                   throws java.lang.Exception
Update the 'type' with the new class definition. This will also add methods, variables, etc...

java.lang.Exception