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
SPECIFIED_VALUE_PROPERTY
static final String SPECIFIED_VALUE_PROPERTY
- See Also:
- Constant Field Values
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)
Copyright (c) 2012 Oracle. All rights reserved.