aicas logoJamaica 3.2 release 62

org.omg.CosNaming
Class NameComponent

java.lang.Object
  extended by org.omg.CosNaming.NameComponent
All Implemented Interfaces:
Serializable, IDLEntity

public final class NameComponent
extends Object
implements IDLEntity

The name component, a node in the multi-comonent name.

See Also:
Serialized Form

Field Summary
 String id
          The name component identifier.
 String kind
          The name component kind (this conception is similar to the file type conception.
 
Constructor Summary
NameComponent()
          Create the empty name component.
NameComponent(String _id, String _kind)
          Create the initialised name component.
 
Method Summary
 boolean equals(Object other)
          Returns true if both name and kind are equal.
 int hashCode()
          Return the hashCode of this NameComponent.
 String toString()
          Get a string representation (id.kind).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public String id
The name component identifier.


kind

public String kind
The name component kind (this conception is similar to the file type conception.

Constructor Detail

NameComponent

public NameComponent()
Create the empty name component.


NameComponent

public NameComponent(String _id,
                     String _kind)
Create the initialised name component.

Method Detail

equals

public boolean equals(Object other)
Returns true if both name and kind are equal.

Overrides:
equals in class Object
Parameters:
other - the other object.
Returns:
if this and other are considered equal.

toString

public String toString()
Get a string representation (id.kind).

Overrides:
toString in class Object
Returns:
a string identifying this object.

hashCode

public int hashCode()
Return the hashCode of this NameComponent.

Overrides:
hashCode in class Object
Returns:
a hash code value.

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.