7.0 Action Request System Java API

com.remedy.arsys.api
Class ContainerOwner

java.lang.Object
  extended bycom.remedy.arsys.api.ContainerOwner
All Implemented Interfaces:
java.lang.Cloneable

public class ContainerOwner
extends java.lang.Object
implements java.lang.Cloneable

The ContainerOwner class lets you set or get the schema that owns the container, as well as the type of container being used (for example, a guide or an application).


Field Summary
static int ALL
          All containers, owned and unowned ones.
static int NONE
          Global container (unowned)
static int SCHEMA
          Container owned by a schema.
 
Constructor Summary
ContainerOwner(int type)
          Useful in case of NONE and ALL.
ContainerOwner(int type, NameID name)
          For owner type SCHEMA.
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality.
 NameID getName()
          Returns form that owns container.
 int getType()
          Returns type of container.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setName(NameID name)
          Sets form that owns container.
 void setType(int nType)
          Sets type of container.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Global container (unowned)

See Also:
Constant Field Values

ALL

public static final int ALL
All containers, owned and unowned ones.

See Also:
Constant Field Values

SCHEMA

public static final int SCHEMA
Container owned by a schema.

See Also:
Constant Field Values
Constructor Detail

ContainerOwner

public ContainerOwner(int type)
Useful in case of NONE and ALL.


ContainerOwner

public ContainerOwner(int type,
                      NameID name)
For owner type SCHEMA.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
java.lang.CloneNotSupportedException

getType

public int getType()
Returns type of container.


getName

public NameID getName()
Returns form that owns container.


setName

public void setName(NameID name)
Sets form that owns container.


setType

public void setType(int nType)
Sets type of container.


equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality. The result is true only if the argument is not null, is of same type and represents the same content.


hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.


7.0 Action Request System Java API