|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IComponentNameProvider
Objects implementing this interface should provide a name for any type of ModelComponent. If an implementation returns null, then the default will be used. The methods all takes in : - an object which defines the SCOPE within which we can evaluate the name. eg for an Artifact, we need to make sure its unique in the scope of the PROJECT. for a Field, the scope is the ARTIFACT to which it is to be added.
| Field Summary | |
|---|---|
static int |
AEND
|
static int |
ZEND
|
| Method Summary | |
|---|---|
java.lang.String |
getNewArgumentName(IMethod method)
This version should be used to select a name of an IArgument where the existing arguments on the method is required for validity checking |
java.lang.String |
getNewArtifactName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
java.lang.Class artifactClass,
ITigerstripeModelProject project,
java.lang.String packageName)
This version should be used to get the new name for an artifact - the name will be based on the class The "target" packageName is provided in case naming rule needs to ensure artifact uniqueness within a package. |
java.lang.String |
getNewAssociationEndName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
IAbstractArtifact artifact,
int whichEnd)
This version should be used to select a name of an AssociationEnd - where the existing methods on the artifact is required for validity checking |
java.lang.String |
getNewFieldName(IAbstractArtifact artifact)
This version should be used to select a name of an IField - where the existing fields on the artifact is required for validity checking |
java.lang.String |
getNewLiteralName(IAbstractArtifact artifact)
This version should be used to select a name of an ILiteral - where the existing literals on the artifact is required for validity checking |
java.lang.String |
getNewMethodName(IAbstractArtifact artifact)
This version should be used to select a name of an IMethod - where the existing methods on the artifact is required for validity checking |
java.lang.String |
getNewRelationshipName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
java.lang.Class artifactClass,
ITigerstripeModelProject project,
java.lang.String packageName,
java.lang.String aEndTypeFQN,
java.lang.String zEndTypeFQN)
This version should be used to get the new name for an artifact - the name will be based on the class, and potentially on the ends of associations. |
| Field Detail |
|---|
static final int AEND
static final int ZEND
| Method Detail |
|---|
java.lang.String getNewArtifactName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
java.lang.Class artifactClass,
ITigerstripeModelProject project,
java.lang.String packageName)
artifactClass - project - packageName -
java.lang.String getNewRelationshipName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
java.lang.Class artifactClass,
ITigerstripeModelProject project,
java.lang.String packageName,
java.lang.String aEndTypeFQN,
java.lang.String zEndTypeFQN)
artifactClass - - should only be used for Association & AssociationClassproject - packageName - aEndType - - the FQN of type of the artifact at the aEnd of the relationshipzEndType - - the FQN of type of the artifact at the aEnd of the relationship
java.lang.String getNewFieldName(IAbstractArtifact artifact)
artifact -
java.lang.String getNewLiteralName(IAbstractArtifact artifact)
artifact -
java.lang.String getNewMethodName(IAbstractArtifact artifact)
artifact -
java.lang.String getNewArgumentName(IMethod method)
method -
java.lang.String getNewAssociationEndName(org.eclipse.tigerstripe.workbench.patterns.IPattern pattern,
IAbstractArtifact artifact,
int whichEnd)
artifact - - must be an IAssociationArtifact or IAssociationClassArtifactwhichEnd - - should be one of AEND or ZEND
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||