public class ComponentIdentifier extends Object implements IComponentIdentifier, Cloneable, Serializable
EMPTY_COMPONENTIDENTIFIERS, LOCAL, RESULTCID
Constructor and Description |
---|
ComponentIdentifier()
Create a new component identifier.
|
ComponentIdentifier(IComponentIdentifier cid)
Copy a component identifier.
|
ComponentIdentifier(String name)
Create a new component identifier with a given global name.
|
ComponentIdentifier(String name,
IComponentIdentifier parent)
Create component identifier.
|
ComponentIdentifier(String name,
IComponentIdentifier parent,
String[] addresses)
Create component identifier.
|
ComponentIdentifier(String name,
String[] addresses)
Create a new component identifier with a global name and given addresses.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this component identifier.
|
boolean |
equals(Object obj)
Test if two component identifiers are equal.
|
String[] |
getAddresses()
Get the addresses of this ComponentIdentifier.
|
String |
getLocalName()
Get the local component name.
|
String |
getName()
Get the component name.
|
IComponentIdentifier |
getParent()
Get the parent identifier.
|
String |
getPlatformName()
Get the platform name.
|
String |
getPlatformPrefix()
Get the platform name without the suffix for name uniqueness.
|
static String |
getPlatformPrefix(String name)
Get the stripped platform name.
|
IComponentIdentifier |
getRoot()
Get the root identifier.
|
int |
hashCode()
The hash code of the object.
|
void |
setAddresses(String[] addresses)
Set the addresses of this ComponentIdentifier.
|
void |
setName(String name)
Set the component name.
|
String |
toString()
Return a string representation.
|
public ComponentIdentifier()
public ComponentIdentifier(String name)
name
- A global name (e.g. "cms@lars").public ComponentIdentifier(String name, String[] addresses)
name
- A global name (e.g. "cms@lars").addresses
- A list of transport addresses.public ComponentIdentifier(String name, IComponentIdentifier parent)
name
- The local name.parent
- The parent.addresses
- The addresses.public ComponentIdentifier(String name, IComponentIdentifier parent, String[] addresses)
name
- The local name.parent
- The parent.addresses
- The addresses.public ComponentIdentifier(IComponentIdentifier cid)
cid
- The id to copy from.public String getName()
getName
in interface IComponentIdentifier
public void setName(String name)
name
- The component name.public String[] getAddresses()
getAddresses
in interface IComponentIdentifier
public void setAddresses(String[] addresses)
addresses
- the value to be setpublic IComponentIdentifier getParent()
getParent
in interface IComponentIdentifier
public IComponentIdentifier getRoot()
getRoot
in interface IComponentIdentifier
public Object clone()
public String getLocalName()
IComponentIdentifier
getLocalName
in interface IComponentIdentifier
public String getPlatformName()
getPlatformName
in interface IComponentIdentifier
public String getPlatformPrefix()
getPlatformPrefix
in interface IComponentIdentifier
public int hashCode()
public boolean equals(Object obj)
public String toString()
Copyright © 2013. All Rights Reserved.