org.eclipse.tigerstripe.workbench.model.deprecated_
Interface IEnumArtifact

All Superinterfaces:
IAbstractArtifact, org.eclipse.tigerstripe.workbench.model.annotation.IAnnotationCapable, IModelComponent, IStereotypeCapable

public interface IEnumArtifact
extends IAbstractArtifact


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IAbstractArtifact
IAbstractArtifact.IFieldTypeRef
 
Nested classes/interfaces inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent
IModelComponent.EMultiplicity, IModelComponent.EVisibility
 
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.
 
Fields inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IAbstractArtifact
EMPTY_ARRAY
 
Method Summary
 IType getBaseType()
           
 java.lang.String getBaseTypeStr()
          Return a string of the base type for this Enumeration Artifact.
 java.lang.String getMaxLiteral()
          Return the NAME of the Enum with the highest value.
 java.lang.String getMinLiteral()
          Return the NAME of the Enum with the lowest value.
 void setBaseType(IType type)
          Sets the base type of this Enumeration Artifact.
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IAbstractArtifact
addField, addLiteral, addMethod, asText, doSave, doSilentSave, getAncestors, getArtifactPath, getArtifactType, getChildren, getExtendedArtifact, getExtendingArtifacts, getFields, getFields, getFieldTypes, getFullyQualifiedName, getImplementedArtifacts, getImplementedArtifactsAsStr, getImplementingArtifacts, getInheritedFields, getInheritedFields, getInheritedLiterals, getInheritedLiterals, getInheritedMethods, getInheritedMethods, getIStandardSpecifics, getLiterals, getLiterals, getMethods, getMethods, getPackage, getParentModuleHeader, getProjectDescriptor, getReferencedArtifacts, getReferencingArtifacts, getTigerstripeProject, getUpdater, hasExtends, isAbstract, isReadonly, makeField, makeLiteral, makeMethod, removeFields, removeLiterals, removeMethods, setAbstract, setExtendedArtifact, setExtendedArtifact, setFields, setFullyQualifiedName, setImplementedArtifacts, setLiterals, setMethods, setPackage, write
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent
getComment, getContainedModelComponents, getContainingModelComponent, getLabel, getMetadata, getName, getProject, getVisibility, isInActiveFacet, setComment, setName, setVisibility, validate
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.profile.stereotype.IStereotypeCapable
addStereotypeInstance, getStereotypeInstanceByName, getStereotypeInstances, getStereotypeString, hasStereotypeInstance, removeStereotypeInstance, removeStereotypeInstances
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.model.annotation.IAnnotationCapable
getAnnotation, getAnnotations, getAnnotations, getAnnotations, hasAnnotations, hasAnnotations, hasAnnotations
 

Field Detail

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)
Sets the base type of this Enumeration Artifact. All Literals in the artifact should be of this type.

Parameters:
type -

getBaseType

IType getBaseType()

getBaseTypeStr

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

Returns:
String matching one of the defined options.

getMaxLiteral

java.lang.String getMaxLiteral()
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.

getMinLiteral

java.lang.String getMinLiteral()
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.