org.eclipse.jpt.jaxb.core.context
Interface JaxbType

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaContextNode, JaxbContextNode, JaxbNode, Model
All Known Subinterfaces:
JaxbClass, JaxbPersistentClass, JaxbPersistentEnum, JaxbPersistentType, JaxbRegistry, JaxbTransientClass

public interface JaxbType
extends JavaContextNode

Represents a java class (or enum or interface) with JAXB metadata (specified or implied).

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.0
Version:
3.0

Nested Class Summary
static class JaxbType.Kind
          The kind of metadata specified on the java type.
 
Method Summary
 java.lang.Iterable<java.lang.String> getDirectlyReferencedTypeNames()
          Return all directly referenced types, fully qualified.
 java.lang.String getFullyQualifiedName()
          Returns the fully qualified name of this type, including qualification for any enclosing types and packages.
 JavaResourceAbstractType getJavaResourceType()
          Return the associated java resource type
 JaxbPackage getJaxbPackage()
          Return the JaxbPackage associated with this type
 JaxbType.Kind getKind()
          Return the kind of JaxbType this represents
 java.lang.String getPackageName()
          Return the name of the type's package.
 java.lang.String getSimpleName()
          Return the name of the type without any package or type qualifiers
 java.lang.String getTypeQualifiedName()
          Returns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification.
 void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
          Add to the list of current validation messages
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.java.JavaContextNode
getJavaCompletionProposals, getValidationTextRange, validate
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.JaxbContextNode
getContextRoot, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.JaxbNode
getJaxbProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart
getResource
 

Method Detail

getKind

JaxbType.Kind getKind()
Return the kind of JaxbType this represents


getJavaResourceType

JavaResourceAbstractType getJavaResourceType()
Return the associated java resource type


getFullyQualifiedName

java.lang.String getFullyQualifiedName()
Returns the fully qualified name of this type, including qualification for any enclosing types and packages.


getTypeQualifiedName

java.lang.String getTypeQualifiedName()
Returns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification.


getSimpleName

java.lang.String getSimpleName()
Return the name of the type without any package or type qualifiers


getPackageName

java.lang.String getPackageName()
Return the name of the type's package. Empty string if none.


getJaxbPackage

JaxbPackage getJaxbPackage()
Return the JaxbPackage associated with this type


getDirectlyReferencedTypeNames

java.lang.Iterable<java.lang.String> getDirectlyReferencedTypeNames()
Return all directly referenced types, fully qualified. (Used for constructing Jaxb context)


validate

void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages,
              org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Add to the list of current validation messages