Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JaxbContextNode, JaxbNode, JptResourceTypeReference, Model
All Known Subinterfaces:
ELJaxbPackage

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

Nested Class Summary
static class JaxbPackage.NameTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<JaxbPackage,String> NAME_TRANSFORMER
           
static String PACKAGE_INFO_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 XmlNsForm getAttributeFormDefault()
          Return the attribute form default associated with this package
 XmlNsForm getElementFormDefault()
          Return the element form default associated with this package
 String getName()
          The package name.
 String getNamespace()
          Return the namespace associated with this package, default or specified
 JaxbPackageInfo getPackageInfo()
          The optional package-info
 XmlRegistry getRegistry()
          Return the XmlRegistry for this package if there is one.
 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.
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.JaxbContextNode
getCompletionProposals, getContextRoot, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.JaxbNode
getJaxbProject, getParent, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<JaxbPackage,String> NAME_TRANSFORMER

PACKAGE_INFO_PROPERTY

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

getName

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

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


getRegistry

XmlRegistry getRegistry()
Return the XmlRegistry for this package if there is one. Return *one* if there are more than one (which is an error case at any rate)


getXsdSchema

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


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.