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

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaContextNode, JaxbContextNode, JaxbNode, Model
All Known Subinterfaces:
JaxbContainmentMapping, XmlAnyAttributeMapping, XmlAnyElementMapping, XmlAttributeMapping, XmlElementMapping, XmlValueMapping

public interface JaxbAttributeMapping
extends JavaContextNode

Represents a JAXB attribute mapping.

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 DEFAULT_PROPERTY
           
 
Method Summary
 java.lang.Iterable<java.lang.String> getDirectlyReferencedTypeNames()
          Return all directly referenced types, fully qualified.
 JavaResourceAttribute getJavaResourceAttribute()
           
 java.lang.String getKey()
           
 JaxbPersistentAttribute getParent()
          Return the JAXB node's parent.
 boolean isDefault()
          Return whether the mapping is its attribute's default mapping (as opposed to its specified mapping).
 void updateDefault()
           
 
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, 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

DEFAULT_PROPERTY

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

getParent

JaxbPersistentAttribute getParent()
Description copied from interface: JaxbNode
Return the JAXB node's parent. The JAXB project will not have a parent.

Specified by:
getParent in interface JaxbNode

getJavaResourceAttribute

JavaResourceAttribute getJavaResourceAttribute()

getKey

java.lang.String getKey()

isDefault

boolean isDefault()
Return whether the mapping is its attribute's default mapping (as opposed to its specified mapping).


updateDefault

void updateDefault()

getDirectlyReferencedTypeNames

java.lang.Iterable<java.lang.String> getDirectlyReferencedTypeNames()
Return all directly referenced types, fully qualified. (Used for constructing Jaxb context) Nulls and empty strings are to be expected.