Openwings API Documentation (v1.0)

net.openwings.context
Class ContextDescriptor

java.lang.Object
  |
  +--net.openwings.context.ContextDescriptor
All Implemented Interfaces:
java.io.Serializable

public class ContextDescriptor
extends java.lang.Object
implements java.io.Serializable

This class defines the information that makes up a context descriptor.

See Also:
Serialized Form

Constructor Summary
ContextDescriptor(UniqueID context, java.lang.String name)
          This constructor sets the value of the relationship desciptor.
 
Method Summary
 boolean equals(java.lang.Object other)
          overrides default equals() method.
 UniqueID getContext()
          This method returns the unique id of the context.
 java.lang.String getName()
          This method returns the name of the context.
 int hashCode()
          overrides default hashCode() method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextDescriptor

public ContextDescriptor(UniqueID context,
                         java.lang.String name)
This constructor sets the value of the relationship desciptor.

Parameters:
context - Id of the context
name - Name of the context
Method Detail

getContext

public UniqueID getContext()
This method returns the unique id of the context.

Returns:
context Id of the platform

getName

public java.lang.String getName()
This method returns the name of the context.

Returns:
context name

equals

public boolean equals(java.lang.Object other)
overrides default equals() method.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
overrides default hashCode() method.

Overrides:
hashCode in class java.lang.Object

Openwings API Documentation (v1.0)