Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler
Class ParameterInfo

java.lang.Object
  extended by oracle.as.scheduler.ParameterInfo

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ParameterInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Defines the metadata (information) of a parameter. This class should be used to declare parameters for a JobDefinition, JobType or JobSet definition.

See Also:
Serialized Form

Nested Class Summary
static class ParameterInfo.DataType
          Enumeration of supported data types.

 

Constructor Summary
ParameterInfo(ParameterInfo source)
          Constructs a new instance with the same information as the specified object.
ParameterInfo(java.lang.String name, ParameterInfo.DataType type)
          Constructs a new instance.
ParameterInfo(java.lang.String name, ParameterInfo.DataType type, boolean legacy)
          Constructs a new instance.
ParameterInfo(java.lang.String name, ParameterInfo.DataType type, java.lang.Object value, boolean readOnly)
          Constructs a new instance.
ParameterInfo(java.lang.String name, ParameterInfo.DataType type, java.lang.Object value, boolean readOnly, boolean legacy)
          Constructs a new instance using the specified attributes.

 

Method Summary
 java.lang.Object clone()
          Clone this object.
 boolean equals(java.lang.Object obj)
          Compare the given object to this object for equality.
 ParameterInfo.DataType getDataType()
          Returns the data type of this parameter.
 java.lang.String getName()
          Returns the name of this parameter.
 java.lang.Object getValue()
          Returns the value of this parameter.
 boolean isLegacy()
          Checks if this parameter is legacy or not.
 boolean isReadOnly()
          Checks if this parameter is read-only or not.
 void setLegacy(boolean legacy)
          Sets the legacy attribute of this parameter.
 void setReadOnly(boolean readOnly)
          Sets the read-only attribute of this parameter.
 void setValue(java.lang.Object value)
          Sets the value of this parameter.

 

Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ParameterInfo

public ParameterInfo(ParameterInfo source)
Constructs a new instance with the same information as the specified object.
Parameters:
source - the object whose attribtes are to be copied.
Throws:
java.lang.NullPointerException - if the specified object is null.

ParameterInfo

public ParameterInfo(java.lang.String name,
                     ParameterInfo.DataType type)
Constructs a new instance. The associated value will be set to null and the read-only and legacy attributes will be set to false.
Parameters:
name - the name of the parameter.
type - the data type as one of the supported enum.

ParameterInfo

public ParameterInfo(java.lang.String name,
                     ParameterInfo.DataType type,
                     boolean legacy)
Constructs a new instance. The associated value will be set to null and the legacy attribute will be set to false.
Parameters:
name - the name of the parameter.
type - the data type as one of the supported enum.
legacy - whether the parameter is legacy or not.

ParameterInfo

public ParameterInfo(java.lang.String name,
                     ParameterInfo.DataType type,
                     java.lang.Object value,
                     boolean readOnly)
Constructs a new instance. The instance is for a non-legacy parameter.
Parameters:
name - the name of the parameter.
type - the data type as one of the supported enum.
value - the (default) value for the parameter.
readOnly - whether the parameter is read-only or not.

ParameterInfo

public ParameterInfo(java.lang.String name,
                     ParameterInfo.DataType type,
                     java.lang.Object value,
                     boolean readOnly,
                     boolean legacy)
Constructs a new instance using the specified attributes.
Parameters:
name - the name of the parameter.
type - the data type as one of the supported enum.
value - the (default) value for the parameter.
readOnly - whether the parameter is read-only or not.
legacy - whether the parameter is legacy or not.

Method Detail

clone

public java.lang.Object clone()
Clone this object.
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()
Returns the name of this parameter.
Returns:
the name of this parameter.

getDataType

public ParameterInfo.DataType getDataType()
Returns the data type of this parameter.
Returns:
the data type of this object.

getValue

public java.lang.Object getValue()
Returns the value of this parameter.
Returns:
the value as an Object. The value can be type-cast to appropriate type by using the associated DataType or by using instanceof.

setValue

public void setValue(java.lang.Object value)
Sets the value of this parameter. The type of the value must match the data type of this parameter.
Parameters:
value - the value to be set. This can be null.

isReadOnly

public boolean isReadOnly()
Checks if this parameter is read-only or not.

If read-only, subsequent objects (such as job request) cannot change the value. Typically a read-only parameter will have a default value that cannot be changed by subsequent objects.

Note that the value can be changed in the object itself where this parameter is defined. For example if this parameter is defined in a JobType as read only parameter, its value can be changed in the JobType definition itself, but a derived JobDefinition or a Job request cannot override the value.

Returns:
true if this parameter is declared as read-only, false otherwise.

setReadOnly

public void setReadOnly(boolean readOnly)
Sets the read-only attribute of this parameter.
Parameters:
readOnly - true to mark this parameter as read-only.

isLegacy

public boolean isLegacy()
Checks if this parameter is legacy or not. The legacy flag provides a way for a user-interface to differentiate normal ESS system properties from system properties that exist for legacy systems.
Returns:
true if this parameter is legacy, false otherwise.

setLegacy

public void setLegacy(boolean legacy)
Sets the legacy attribute of this parameter.
Parameters:
legacy - true to mark this parameter as legacy.

equals

public boolean equals(java.lang.Object obj)
Compare the given object to this object for equality.
Overrides:
equals in class java.lang.Object
Parameters:
obj - ParameterInfo object to compare.
Returns:
true of the given object is equal to this object, or false otherwise.

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.