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

All Superinterfaces:
IModelComponent, IStereotypeCapable

public interface ILiteral
extends IModelComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent
IModelComponent.EMultiplicity, IModelComponent.EVisibility
 
Field Summary
static java.util.List<ILiteral> EMPTY_LIST
          An empty list this is used as a return for Artifact types that do not support Literals.
 
Method Summary
 ILiteral clone()
          Clone the literal.
 IAbstractArtifact getContainingArtifact()
          Returns the IArtifact that is the "container" for the Literal.
 java.lang.String getLabelString()
          Returns a String that describes the Literak.
 IType getType()
          Returns the type of this literal.
 java.lang.String getValue()
          Returns the value of the literal.
 IType makeType()
          Make a blank type object.
 void setType(IType type)
          Sets the type of the literal.
 void setValue(java.lang.String value)
          Sets the value of the literal.
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent
getAnnotation, getAnnotations, getAnnotations, getAnnotations, getComment, getMetadata, getName, getProject, getVisibility, hasAnnotations, hasAnnotations, hasAnnotations, isInActiveFacet, setComment, setName, setVisibility, validate
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.profile.stereotype.IStereotypeCapable
addStereotypeInstance, getStereotypeInstanceByName, getStereotypeInstances, hasStereotypeInstance, removeStereotypeInstance, removeStereotypeInstances
 

Field Detail

EMPTY_LIST

static final java.util.List<ILiteral> EMPTY_LIST
An empty list this is used as a return for Artifact types that do not support Literals.

Method Detail

getContainingArtifact

IAbstractArtifact getContainingArtifact()
Returns the IArtifact that is the "container" for the Literal.

Returns:
the containing artifact.

getLabelString

java.lang.String getLabelString()
Returns a String that describes the Literak. This is the presentation used in the Explorer view. The format is : name = value

Returns:
formatted string

getType

IType getType()
Returns the type of this literal.

Returns:
IType - the type of this literal

setType

void setType(IType type)
Sets the type of the literal. The type must be one of String or int.

Parameters:
type -

makeType

IType makeType()
Make a blank type object.

Returns:
- a new IType.

getValue

java.lang.String getValue()
Returns the value of the literal. The return will be a String irrespetive of the "type" of the literal.

Returns:
String - the value of the literal

setValue

void setValue(java.lang.String value)
Sets the value of the literal.

Parameters:
value -

clone

ILiteral clone()
Clone the literal.

Returns: