Dali Provisional API
Release 3.2

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

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

public interface JaxbEnumConstant
extends JaxbContextNode

Represents a JAXB enum constant. (A constant inside an enum with either an explicit or implicit @XmlEnumValue annotation)

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
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static String SPECIFIED_VALUE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 String getDefaultValue()
          The default value will be the name of the enum constant.
 String getName()
          Return the name of the enum constant.
 JavaResourceEnumConstant getResourceEnumConstant()
           
 String getSpecifiedValue()
           
 String getValue()
          Return the enum constant's value, whether specified or default.
 void setSpecifiedValue(String value)
           
 
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

SPECIFIED_VALUE_PROPERTY

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

getResourceEnumConstant

JavaResourceEnumConstant getResourceEnumConstant()

getName

String getName()
Return the name of the enum constant. This will not change, a new JaxbEnumConstant will be built if the name changes.


getValue

String getValue()
Return the enum constant's value, whether specified or default.


getDefaultValue

String getDefaultValue()
The default value will be the name of the enum constant. It will be used if the XmlEnumValue annotation is null.

See Also:
getName()

getSpecifiedValue

String getSpecifiedValue()

setSpecifiedValue

void setSpecifiedValue(String value)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.