public class IdentifiableComponent extends Object implements Identifiable
DEFAULT, LOCAL, UNKNOWN| Constructor and Description |
|---|
IdentifiableComponent(Identifier identifier)
Creates an identifiable component from an identifier.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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.
|
public IdentifiableComponent(Identifier identifier)
identifier - the identifier of the componentpublic 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)
public boolean equals(Object object)
public int hashCode()
Copyright © 2019 CNRS. All rights reserved.