Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


oracle.as.scheduler
Class ParameterList

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

All Implemented Interfaces:
java.io.Serializable

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

Stores list of parameters. Instance of this class is used to declare all the parameters of a given JobDefinition, JobType or JobSet definition. This can include both application level parameters and system properties for a given definition (metadata object).

See Also:
Serialized Form

Constructor Summary
ParameterList()
          Constructs an instance of ParameterList.
ParameterList(ParameterList source)
          Constructs an instance with the same list mappings as the specified object.

 

Method Summary
 void add(ParameterInfo param)
          Adds a parameter to the list.
 void add(java.lang.String name, java.lang.Boolean value, boolean readOnly)
          Adds a parameter of type Boolean to this list with the given name and value.
 void add(java.lang.String name, java.lang.Integer value, boolean readOnly)
          Adds a parameter of type Integer to this list with the given name and value.
 void add(java.lang.String name, java.lang.Long value, boolean readOnly)
          Adds a parameter of type Long to this list with the given name and value.
 void add(java.lang.String name, ParameterInfo.DataType type)
          Adds a parameter to this list with the given name and data type.
 void add(java.lang.String name, ParameterInfo.DataType type, java.lang.Object value, boolean readOnly)
          Adds a parameter to the list with the given information about the parameter.
 void add(java.lang.String name, ParameterInfo.DataType type, java.lang.Object value, boolean readOnly, boolean legacy)
          Adds a parameter to the list with the given information about the parameter.
 void add(java.lang.String name, java.lang.String value, boolean readOnly)
          Adds a parameter of type String to this list with the given name and value.
 void clear()
          Removes all parameter information from this list.
 boolean contains(java.lang.String name)
          Indicates if this list contains a parameter for the given name.
 boolean equals(java.lang.Object obj)
          Compares the specific object with this object for equality.
 ParameterInfo get(java.lang.String name)
          Returns the information about the given parameter from this list.
 java.util.Collection<ParameterInfo> getAll()
          Returns a collection view of all the parameters from this list.
 java.util.Enumeration<java.lang.String> getNames()
          Returns all the names of the parameters in this list.
 java.lang.Object getValue(java.lang.String name)
          Gets the value for a parameter in the list.
 int hashCode()
          Returns the hash code value of this list.
 void remove(java.lang.String name)
          Removes the given parameter from the list.

 

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

 

Constructor Detail

ParameterList

public ParameterList()
Constructs an instance of ParameterList.

ParameterList

public ParameterList(ParameterList source)
Constructs an instance with the same list mappings as the specified object.
Parameters:
source - the list whose parameters are to be placed in this object
Throws:
java.lang.NullPointerException - if the specified list is null.

Method Detail

add

public void add(java.lang.String name,
                java.lang.String value,
                boolean readOnly)
Adds a parameter of type String to this list with the given name and value.
Parameters:
name - the name of the parameter to be added.
value - value of the parameter.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.

add

public void add(java.lang.String name,
                java.lang.Integer value,
                boolean readOnly)
Adds a parameter of type Integer to this list with the given name and value.
Parameters:
name - the name of the parameter to be added.
value - value of the parameter.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.

add

public void add(java.lang.String name,
                java.lang.Long value,
                boolean readOnly)
Adds a parameter of type Long to this list with the given name and value.
Parameters:
name - the name of the parameter to be added.
value - value of the parameter.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.

add

public void add(java.lang.String name,
                java.lang.Boolean value,
                boolean readOnly)
Adds a parameter of type Boolean to this list with the given name and value.
Parameters:
name - the name of the parameter to be added.
value - value of the parameter.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.

add

public void add(java.lang.String name,
                ParameterInfo.DataType type)
Adds a parameter to this list with the given name and data type. A parameter added via this method has no value and is not flagged as read-only.
Parameters:
name - the name of the parameter to be added.
type - the data type of the parameter. The data type is one of the supported data types.

add

public void add(java.lang.String name,
                ParameterInfo.DataType type,
                java.lang.Object value,
                boolean readOnly)
Adds a parameter to the list with the given information about the parameter.
Parameters:
name - the name of the parameter to be added.
type - the data type of the parameter
value - an optional (default) value of the parameter. The data type of the value must match with the type argument.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.

add

public void add(java.lang.String name,
                ParameterInfo.DataType type,
                java.lang.Object value,
                boolean readOnly,
                boolean legacy)
Adds a parameter to the list with the given information about the parameter.
Parameters:
name - the name of the parameter to be added.
type - the data type of the parameter
value - an optional (default) value of the parameter. The data type of the value must match with the type argument.
readOnly - indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
legacy - indicates whether the parameter is legacy

add

public void add(ParameterInfo param)
Adds a parameter to the list.

This simply adds the specified ParameterInfo to the list, it does not create a new ParameterInfo object.

Parameters:
param - the parameter info instance to be added to the list.
Throws:
java.lang.NullPointerException - if the parameter info is null.

getNames

public java.util.Enumeration<java.lang.String> getNames()
Returns all the names of the parameters in this list. The method is useful for iterating over all the parameters.
Returns:
parameter names as Enumeration.

contains

public boolean contains(java.lang.String name)
Indicates if this list contains a parameter for the given name.
Parameters:
name - the name of the parameter
Returns:
true if the parameter exists in the list, or false if not.

get

public ParameterInfo get(java.lang.String name)
Returns the information about the given parameter from this list.
Parameters:
name - the name of the parameter whose information is returned.
Returns:
an instance of ParameterInfo for the parameter. This will be null if this list does not contain a parameter with the given name.

getAll

public java.util.Collection<ParameterInfo> getAll()
Returns a collection view of all the parameters from this list.
Returns:
a collection containing instances of ParameterInfo

getValue

public java.lang.Object getValue(java.lang.String name)
Gets the value for a parameter in the list.
Parameters:
name - the name of the parameter
Returns:
the parameter value. This will be null if the list does not a parameter with the given name.

remove

public void remove(java.lang.String name)
Removes the given parameter from the list.
Parameters:
name - the name of the parameter to be removed.

clear

public void clear()
Removes all parameter information from this list.

hashCode

public int hashCode()
Returns the hash code value of this list.
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code of this instance.

equals

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


Copyright © 2008, 2012 Oracle. All rights reserved.