org.jvnet.annox.model
Class XPackage

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotated
      extended by org.jvnet.annox.model.XAnnotatedElement<Package>
          extended by org.jvnet.annox.model.XPackage
All Implemented Interfaces:
AnnotatedElement

public class XPackage
extends XAnnotatedElement<Package>

Defines an annotated package.

Author:
Aleksei Valikov

Field Summary
static XPackage VOID
          VOID package.
 
Constructor Summary
XPackage(Package targetPackage, XAnnotation[] xannotations, XClass[] xclasses)
          Constructs an annotated package.
 
Method Summary
 XClass[] getClasses()
          Returns annotated classes of the package.
 Package getPackage()
          Returns the target package.
 
Methods inherited from class org.jvnet.annox.model.XAnnotatedElement
getAnnotatedElement, getAnnotation, getDeclaredAnnotations, isAnnotationPresent
 
Methods inherited from class org.jvnet.annox.model.XAnnotated
equals, getAnnotations, getXAnnotations, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotations
 

Field Detail

VOID

public static final XPackage VOID
VOID package.

Constructor Detail

XPackage

public XPackage(Package targetPackage,
                XAnnotation[] xannotations,
                XClass[] xclasses)
Constructs an annotated package.

Parameters:
targetPackage - target package.
xannotations - package annotations, may be null.
Method Detail

getPackage

public Package getPackage()
Returns the target package.

Returns:
Target package.

getClasses

public XClass[] getClasses()
Returns annotated classes of the package.

Returns:
Annotated classes of the package.


Copyright © 2006-2011 Highsource. All Rights Reserved.