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

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JaxbContextNode, JaxbNode, Model

public interface JaxbPackage
extends JaxbContextNode

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

Field Summary
static java.lang.String PACKAGE_INFO_PROPERTY
           
 
Method Summary
 XmlNsForm getAttributeFormDefault()
          Return the attribute form default associated with this package
 XmlNsForm getElementFormDefault()
          Return the element form default associated with this package
 java.lang.String getName()
          The package name.
 java.lang.String getNamespace()
          Return the namespace associated with this package, default or specified
 JaxbPackageInfo getPackageInfo()
          The optional package-info
 XsdSchema getXsdSchema()
          Return the XsdSchema associated with this package, if there is one, null otherwise
 boolean isEmpty()
          Return whether this package has no useful information.
 void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages, org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
          Add validation messages to the specified list.
 
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
 

Field Detail

PACKAGE_INFO_PROPERTY

static final java.lang.String PACKAGE_INFO_PROPERTY
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
The package name. This is unchanging in that, if a package name changes, a new JaxbPackage is created.


getPackageInfo

JaxbPackageInfo getPackageInfo()
The optional package-info


getNamespace

java.lang.String getNamespace()
Return the namespace associated with this package, default or specified


getAttributeFormDefault

XmlNsForm getAttributeFormDefault()
Return the attribute form default associated with this package


getElementFormDefault

XmlNsForm getElementFormDefault()
Return the element form default associated with this package


isEmpty

boolean isEmpty()
Return whether this package has no useful information. Useful information includes: - annotated package-info.java - jaxb.index - object factory


getXsdSchema

XsdSchema getXsdSchema()
Return the XsdSchema associated with this package, if there is one, null otherwise


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 validation messages to the specified list.