com.sun.tools.xjc.outline
Class ClassOutline

java.lang.Object
  extended by com.sun.tools.xjc.outline.ClassOutline
Direct Known Subclasses:
ClassOutlineImpl

public abstract class ClassOutline
extends Object

Outline object that provides per-CClassInfo information for filling in methods/fields for a bean. This interface is accessible from Outline


Field Summary
 com.sun.codemodel.JDefinedClass implClass
          The implementation aspect of a bean.
 com.sun.codemodel.JClass implRef
          The implementation class that shall be used for reference.
 com.sun.codemodel.JDefinedClass ref
          The exposed aspect of the a bean.
 CClassInfo target
          This ClassOutline holds information about this CClassInfo.
 
Constructor Summary
protected ClassOutline(CClassInfo _target, com.sun.codemodel.JDefinedClass exposedClass, com.sun.codemodel.JClass implRef, com.sun.codemodel.JDefinedClass _implClass)
           
 
Method Summary
 PackageOutline _package()
          PackageOutline that contains this class.
 FieldOutline[] getDeclaredFields()
          Gets all the FieldOutlines newly declared in this class.
 ClassOutline getSuperClass()
          Returns the super class of this class, if it has the super class and it is also a JAXB-bound class.
abstract  Outline parent()
          A Outline that encloses all the class outlines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

@NotNull
public final CClassInfo target
This ClassOutline holds information about this CClassInfo.


ref

@NotNull
public final com.sun.codemodel.JDefinedClass ref
The exposed aspect of the a bean. implClass is always assignable to this type.

Usually this is the public content interface, but it could be the same as the implClass.


implClass

@NotNull
public final com.sun.codemodel.JDefinedClass implClass
The implementation aspect of a bean. The actual place where fields/methods should be generated into.


implRef

@NotNull
public final com.sun.codemodel.JClass implRef
The implementation class that shall be used for reference.

Usually this field holds the same value as the implClass method, but sometimes it holds the user-specified implementation class when it is specified.

This is the type that needs to be used for generating fields.

Constructor Detail

ClassOutline

protected ClassOutline(CClassInfo _target,
                       com.sun.codemodel.JDefinedClass exposedClass,
                       com.sun.codemodel.JClass implRef,
                       com.sun.codemodel.JDefinedClass _implClass)
Method Detail

parent

@NotNull
public abstract Outline parent()
A Outline that encloses all the class outlines.


_package

@NotNull
public PackageOutline _package()
PackageOutline that contains this class.


getDeclaredFields

public final FieldOutline[] getDeclaredFields()
Gets all the FieldOutlines newly declared in this class.


getSuperClass

public final ClassOutline getSuperClass()
Returns the super class of this class, if it has the super class and it is also a JAXB-bound class. Otherwise null.