|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.businessobjects.artifact.ComponentType
public class ComponentType
Entity representing a component type. Such a type helps
categorizing software components into your project.
A component type will help by knowing how to generate unique keys for
component artifacts. (see the generateComponentKey()
method)
Constructor Summary | |
---|---|
ComponentType()
Creates a new instance of ComponentType |
|
ComponentType(java.lang.String key,
java.lang.String label,
java.lang.String keyTemplate,
java.lang.String description)
Creates a new instance of ComponentType with mandatory attributes |
Method Summary | |
---|---|
java.lang.String |
generateComponentKey(Component component)
Generate a unique key for a compoent. |
java.lang.String |
getDescription()
|
java.lang.String |
getKey()
|
java.lang.String |
getKeyTemplate()
|
java.lang.String |
getLabel()
|
void |
setDescription(java.lang.String description)
|
void |
setKey(java.lang.String key)
|
void |
setKeyTemplate(java.lang.String keyTemplate)
The template used for component key generation. |
void |
setLabel(java.lang.String label)
|
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, getId, hashCode, isTransient |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentType()
public ComponentType(java.lang.String key, java.lang.String label, java.lang.String keyTemplate, java.lang.String description)
key
- This component type keylabel
- This component type label for displaykeyTemplate
- This type template fopr generating component keysdescription
- The description of this component typeMethod Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- This component type keypublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- This type label for displaypublic java.lang.String getKeyTemplate()
public void setKeyTemplate(java.lang.String keyTemplate)
MessageFormat
with
2 arguments. (ex: myComponent_r{0}_v{0})
keyTemplate
- MessageFormat templateMessageFormat
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of this component typepublic java.lang.String generateComponentKey(Component component)
Artifact
. So this implementation is using
the given keyTemplate as a java.text.MessageFormat using 2 arguments
that are the component release name (unique for a relase) and the component
version infos (unique for a component within a release).
component
- Component for whom a key should be generated
MessageFormat
,
Artifact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |