org.apache.servicemix.jbi.framework
Class ComponentNameSpace

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.ComponentNameSpace
All Implemented Interfaces:
Externalizable, Serializable

public class ComponentNameSpace
extends Object
implements Externalizable

Component Name is used internally to identify a Component.

Version:
$Revision: 2153 $
See Also:
Serialized Form

Field Summary
protected  String containerName
           
protected  String name
           
 
Constructor Summary
ComponentNameSpace()
          Default Constructor
ComponentNameSpace(String containerName, String componentName)
          Construct a ComponentName
 
Method Summary
 ComponentNameSpace copy()
          copy this
 boolean equals(Object obj)
           
 String getContainerName()
           
 String getName()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
          read from Stream
 void setContainerName(String containerName)
           
 void setName(String componentName)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
          write out to stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

containerName

protected String containerName

name

protected String name
Constructor Detail

ComponentNameSpace

public ComponentNameSpace()
Default Constructor


ComponentNameSpace

public ComponentNameSpace(String containerName,
                          String componentName)
Construct a ComponentName

Parameters:
containerName -
componentName -
componentId -
Method Detail

getName

public String getName()
Returns:
Returns the componentName.

setName

public void setName(String componentName)
Parameters:
componentName - The componentName to set.

getContainerName

public String getContainerName()
Returns:
Returns the containerName.

setContainerName

public void setContainerName(String containerName)
Parameters:
containerName - The containerName to set.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if obj is equivalent to 'this'

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
the hashCode

toString

public String toString()
Overrides:
toString in class Object
Returns:
pretty print

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
write out to stream

Specified by:
writeExternal in interface Externalizable
Parameters:
out -
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
read from Stream

Specified by:
readExternal in interface Externalizable
Parameters:
in -
Throws:
IOException
ClassNotFoundException

copy

public ComponentNameSpace copy()
copy this

Returns:


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.