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
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).
Copyright (c) 2012 Oracle. All rights reserved.