Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JaxbContextNode, JaxbNode, JptResourceTypeReference, Model

public interface Accessor
extends JaxbContextNode

Represents a JAXB accessor (field/property).

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.1

Nested Class Summary
static class Accessor.AccessorTools
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 JavaResourceAttribute getJavaResourceAttribute()
           
 String getJavaResourceAttributeBaseTypeName()
          Return the type name of the java attribute, or the item type name of a collection or array.
 boolean isFor(JavaResourceField resourceField)
           
 boolean isFor(JavaResourceMethod resourceGetter, JavaResourceMethod resourceSetter)
           
 boolean isJavaResourceAttributeCollectionType()
          (See JAXB 2.2 Spec, sect. 5.5.2) Return true if the java attribute type is an extension of java.util.Collection or a single dimensional array (except for byte[], which is treated like a non-array)
 boolean isJavaResourceAttributeTypeSubTypeOf(String typeName)
          Return whether the java resource attribute type is a subtype of the given type This might not return the same thing as getJavaResourceAttribute().typeIsSubTypeOf(String).
 
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
 

Method Detail

getJavaResourceAttribute

JavaResourceAttribute getJavaResourceAttribute()

isFor

boolean isFor(JavaResourceField resourceField)

isFor

boolean isFor(JavaResourceMethod resourceGetter,
              JavaResourceMethod resourceSetter)

getJavaResourceAttributeBaseTypeName

String getJavaResourceAttributeBaseTypeName()
Return the type name of the java attribute, or the item type name of a collection or array.


isJavaResourceAttributeCollectionType

boolean isJavaResourceAttributeCollectionType()
(See JAXB 2.2 Spec, sect. 5.5.2) Return true if the java attribute type is an extension of java.util.Collection or a single dimensional array (except for byte[], which is treated like a non-array)


isJavaResourceAttributeTypeSubTypeOf

boolean isJavaResourceAttributeTypeSubTypeOf(String typeName)
Return whether the java resource attribute type is a subtype of the given type This might not return the same thing as getJavaResourceAttribute().typeIsSubTypeOf(String).


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.