Class PackageImpl
- java.lang.Object
 - 
- org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
 - 
- org.apache.xmlbeans.impl.jam.internal.elements.AnnotatedElementImpl
 - 
- org.apache.xmlbeans.impl.jam.internal.elements.PackageImpl
 
 
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable,JAnnotatedElement,JElement,JPackage,MAnnotatedElement,MElement,MPackage
public class PackageImpl extends AnnotatedElementImpl implements MPackage
Generic implementation of JPackage/InternalJPackage that is good enough for all samples, right now. This might change if we ever wrap a model which natively supports package-level annotation.
 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PackageImpl(ElementContext ctx, java.lang.String name) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JVisitor visitor)Accepts the given visitor.voidaccept(MVisitor visitor)JClass[]getClasses()Returns the classes in this package which were specified as part of the JRoot construction.MClass[]getMutableClasses()java.lang.StringgetQualifiedName()Returns a qualified name for this abstraction.- 
Methods inherited from class org.apache.xmlbeans.impl.jam.internal.elements.AnnotatedElementImpl
addAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeComment 
- 
Methods inherited from class org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
compareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toString 
- 
Methods inherited from interface org.apache.xmlbeans.impl.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment 
- 
Methods inherited from interface org.apache.xmlbeans.impl.jam.JElement
getArtifact, getParent, getSimpleName, getSourcePosition, toString 
- 
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MAnnotatedElement
addLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeComment 
- 
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MElement
createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PackageImpl
public PackageImpl(ElementContext ctx, java.lang.String name)
 
 - 
 
- 
Method Detail
- 
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface:JElementReturns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.
- Specified by:
 getQualifiedNamein interfaceJElement
 
- 
accept
public void accept(JVisitor visitor)
Description copied from interface:JElementAccepts the given visitor.
 
- 
getClasses
public JClass[] getClasses()
Description copied from interface:JPackageReturns the classes in this package which were specified as part of the JRoot construction. Note that this does not necessarily include all of the classes that are actually in the package (it may not contain any specified classes at all).- Specified by:
 getClassesin interfaceJPackage
 
- 
getMutableClasses
public MClass[] getMutableClasses()
- Specified by:
 getMutableClassesin interfaceMPackage
 
 - 
 
 -