org.eclipse.tigerstripe.model.artifacts
Interface IEnumArtifact

All Superinterfaces:
IAbstractArtifact, IModelComponent, IStereotypeCapable

public interface IEnumArtifact
extends IAbstractArtifact


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.tigerstripe.model.artifacts.IAbstractArtifact
IAbstractArtifact.IFieldTypeRef
 
Field Summary
static java.lang.String BASETYPE_INT
          Static string for int base type.
static java.lang.String BASETYPE_STRING
          Static string for String base type.
static java.lang.String[] baseTypeOptions
          Array of supported base types.
static java.lang.String DEFAULT_LABEL
           
 
Fields inherited from interface org.eclipse.tigerstripe.model.IModelComponent
VISIBILITY_PACKAGE, VISIBILITY_PRIVATE, VISIBILITY_PROTECTED, VISIBILITY_PUBLIC
 
Method Summary
 java.lang.String getBaseTypeStr()
          Return a string of the base type for this enum.
 java.lang.String getMaxLabel()
          Return the NAME of the Enum with the highest value.
 java.lang.String getMinLabel()
          Return the NAME of the Enum with the lowest value.
 void setBaseType(IType type)
           
 
Methods inherited from interface org.eclipse.tigerstripe.model.artifacts.IAbstractArtifact
addIField, addILabel, addIMethod, asText, doSave, doSilentSave, getAncestors, getArtifactPath, getArtifactType, getChildren, getExtendedIArtifact, getExtendingArtifacts, getExtendingIArtifacts, getFieldITypes, getFullyQualifiedName, getIArtifactType, getIFields, getIFields, getILabels, getILabels, getIMethods, getIMethods, getImplementedArtifacts, getImplementedArtifactsAsStr, getImplementingIArtifacts, getInheritedIFields, getInheritedIFields, getInheritedILabels, getInheritedILabels, getInheritedIMethods, getInheritedIMethods, getIProject, getIProjectDescriptor, getIStandardSpecifics, getITigerstripeProject, getLabel, getPackage, getReferencedArtifacts, getReferencedIArtifacts, getReferencingIArtifacts, getUpdater, hasExtends, isAbstract, isInActiveFacet, isReadonly, makeIField, makeILabel, makeIMethod, removeIFields, removeILabels, removeIMethods, setAbstract, setExtendedIArtifact, setFullyQualifiedName, setIFields, setILabels, setIMethods, setImplementedArtifacts, setPackage, validate, write
 
Methods inherited from interface org.eclipse.tigerstripe.model.IModelComponent
addStereotypeInstance, getComment, getName, getVisibility, removeStereotypeInstance, removeStereotypeInstances, setComment, setName, setVisibility
 
Methods inherited from interface org.eclipse.tigerstripe.profile.stereotype.IStereotypeCapable
getStereotypeInstances
 

Field Detail

DEFAULT_LABEL

static final java.lang.String DEFAULT_LABEL
See Also:
Constant Field Values

BASETYPE_INT

static final java.lang.String BASETYPE_INT
Static string for int base type.

See Also:
Constant Field Values

BASETYPE_STRING

static final java.lang.String BASETYPE_STRING
Static string for String base type.

See Also:
Constant Field Values

baseTypeOptions

static final java.lang.String[] baseTypeOptions
Array of supported base types.

Method Detail

setBaseType

void setBaseType(IType type)

getBaseTypeStr

java.lang.String getBaseTypeStr()
Return a string of the base type for this enum.

Returns:
String matching one of the defined options.

getMaxLabel

java.lang.String getMaxLabel()
Return the NAME of the Enum with the highest value. If a String based Enum the return is indeterminate.

Returns:
Name of the label with highest integer value.

getMinLabel

java.lang.String getMinLabel()
Return the NAME of the Enum with the lowest value. If a String based Enum the return is indeterminate.

Returns:
Name of the label with lowest integer value.