|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
public class IdentifiableComponent
IdentifiableComponent is a helper class used as a parent class for components having to implement the Identifiable interface. Instead of implementing Identifiable methods in each component class, the programmer just has to extends IdentifiableComponent.
| Field Summary |
|---|
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
IdentifiableComponent(Identifier identifier)
Creates an identifiable component from an identifier. |
|
| Method Summary | |
|---|---|
boolean |
addAlias(Identifiable alias)
Add an alias |
void |
addRemark(String new_remark)
Add remarks. |
boolean |
equals(Object object)
Returns true if object is an Identifier equals to this one. |
List<Identifiable> |
getAliases()
Get aliases |
String |
getAuthorityKey()
Returns the id of this identifier (id must be unique inside a namespace). |
String |
getAuthorityName()
Return the namespace of this identifier (ex. |
String |
getCode()
Returns a code formed with a namespace, ':' and the id value of identifier (ex. |
static IdentifiableComponent |
getComponent(Identifier id)
Get the component based on its identifier |
Identifier |
getIdentifier()
Return this component's Identifier |
String |
getName()
Returns a string used to identify clearly the object. |
String |
getRemarks()
Returns the name of this extent. |
String |
getShortName()
Returns a short string used to identify unambiguously the object. |
int |
hashCode()
Returns a hash code for this IdentifiableComponent. |
protected void |
setIdentifier(Identifier identifier)
Change this component's Identifier |
void |
setRemarks(String remarks)
Change the remarks. |
void |
setShortName(String uiName)
Change the short string used to identify unambiguously the object. |
String |
toString()
Returns a String representation of this identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentifiableComponent(Identifier identifier)
identifier - the identifier of the component| Method Detail |
|---|
public Identifier getIdentifier()
protected void setIdentifier(Identifier identifier)
identifier - the new identifier of the componentpublic String getAuthorityName()
getAuthorityName in interface Identifiablepublic String getAuthorityKey()
getAuthorityKey in interface Identifiablepublic String getCode()
getCode in interface Identifiablepublic String getName()
getName in interface Identifiablepublic String getShortName()
getShortName in interface Identifiablepublic void setShortName(String uiName)
setShortName in interface IdentifiableuiName - the new short name of the componentpublic String getRemarks()
getRemarks in interface Identifiablepublic void setRemarks(String remarks)
setRemarks in interface Identifiableremarks - the new remarks of the componentpublic void addRemark(String new_remark)
addRemark in interface Identifiablenew_remark - the remark to add to the componentpublic List<Identifiable> getAliases()
getAliases in interface Identifiablepublic boolean addAlias(Identifiable alias)
addAlias in interface Identifiablealias - an alias for this objectpublic static IdentifiableComponent getComponent(Identifier id)
id -
public boolean equals(Object object)
equals in class Objectobject - The object to compare this IdentifiableComponent againstpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||