|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IField
This class represents a Field for an IArtifact. An IField is the model representation of an attribute of a Tigerstripe Artifact.
| 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<IField> |
EMPTY_LIST
An empty list this is used as a return for Artifact types that do not support Fields. |
static int |
NON_APPLICABLE
Static integer value for non-applicable reference type. |
static int |
REFBY_KEY
Static integer value for Ref By Key type. |
static int |
REFBY_KEYRESULT
Static integer value for Ref By Key Result type. |
static int |
REFBY_VALUE
Static integer value for Ref By Value type. |
static java.lang.String[] |
refByLabels
String values corresponding to the refBy types |
| Method Summary | |
|---|---|
IField |
clone()
Clones this Field. |
IAbstractArtifact |
getContainingArtifact()
Returns the IArtifact that is the "container" for the Field. |
java.lang.String |
getDefaultValue()
Returns the default value for this field if it exists, null otherwise. |
java.lang.String |
getLabelString()
Returns a String that describes the Field. |
int |
getRefBy()
Returns an integer value indicating the reference type of the field. |
java.lang.String |
getRefByString()
Returns an String value indicating the reference type of the field. |
IType |
getType()
Returns the type of this field. |
boolean |
isOptional()
Returns a boolean indicating if this field is optional or mandatory. |
boolean |
isOrdered()
Returns a boolean indicating if this field is ordered (multiplicity > 1). |
boolean |
isReadOnly()
Returns a boolean indicating if this field is read-only. |
boolean |
isUnique()
Returns a boolean indicating if this field contains unique values (multiplicity > 1). |
IType |
makeType()
Make a blank type object. |
void |
setDefaultValue(java.lang.String value)
Sets the default value for this field if it exists, null otherwise. |
void |
setOptional(boolean optional)
Sets the optional attribute of the Field. |
void |
setOrdered(boolean isOrdered)
Sets the ordered attribute of the Field. |
void |
setReadOnly(boolean readonly)
Sets the readonly attribute of the Field. |
void |
setRefBy(int refBy)
Sets the reference type of the field. |
void |
setType(IType type)
Sets the type of the field. |
void |
setUnique(boolean isUnique)
Sets the unique attribute of the Field. |
| 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 |
|---|
static final java.util.List<IField> EMPTY_LIST
static final int NON_APPLICABLE
static final int REFBY_KEY
static final int REFBY_KEYRESULT
static final int REFBY_VALUE
static final java.lang.String[] refByLabels
| Method Detail |
|---|
IAbstractArtifact getContainingArtifact()
java.lang.String getLabelString()
java.lang.String getRefByString()
int getRefBy()
void setRefBy(int refBy)
IType getType()
void setType(IType type)
type - java.lang.String getDefaultValue()
void setDefaultValue(java.lang.String value)
IType makeType()
boolean isOptional()
void setOptional(boolean optional)
optional - boolean isReadOnly()
void setReadOnly(boolean readonly)
readonly - boolean isOrdered()
void setOrdered(boolean isOrdered)
isOrdered - boolean isUnique()
void setUnique(boolean isUnique)
isUnique - IField clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||