org.omg.CosNaming

Class NameComponent

public final class NameComponent extends Object implements IDLEntity

The name component, a node in the multi-comonent name.
Field Summary
Stringid
The name component identifier.
Stringkind
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
booleanequals(Object other)
Returns true if both name and kind are equal.
inthashCode()
Return the hashCode of this NameComponent.
StringtoString()
Get a string representation (id.kind).

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.

hashCode

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

toString

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