Openwings API Documentation (v1.1)

net.openwings.context
Class ContextDescriptor

java.lang.Object
  extended bynet.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()
          Default constructor
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.
 void setContext(UniqueID contextID)
          This method sets the unique id of the context.
 void setName(java.lang.String name)
          This method sets the name of the context.
 java.lang.String toString()
          overrides default toString() method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextDescriptor

public ContextDescriptor()
Default constructor


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

setContext

public void setContext(UniqueID contextID)
This method sets the unique id of the context.

Parameters:
contextID - context Id of the platform

getName

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

Returns:
context name

setName

public void setName(java.lang.String name)
This method sets the name of the context.

Parameters:
name - context name

equals

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


hashCode

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


toString

public java.lang.String toString()
overrides default toString() method.


Openwings API Documentation (v1.1)