edg.workload.common.jrequestad
Class JobAdSchema

java.lang.Object
  |
  +--edg.workload.common.jrequestad.JobAdSchema

public class JobAdSchema
extends java.lang.Object

Provides a Schema used to check the attribute in the JobAd The default utilised schema is GLUE. To instanciate a schema you will need to provide an array of Strings, one per attribute Known used schema so far: EDG , GLUE (Default used schema)


Field Summary
static int SCHEMA_ARRAY
          Array dimension for Schema Attributes values
 
Constructor Summary
JobAdSchema(java.lang.String[] values)
          CUSTOM schema constructor
 
Method Summary
 java.lang.String get(int attrName)
          Retrieve a default value from the schema
static JobAdSchema glueSchema()
          GLUE schema static constructor (JobAd default utilised schema)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_ARRAY

public static final int SCHEMA_ARRAY
Array dimension for Schema Attributes values

See Also:
get(int), Constant Field Values
Constructor Detail

JobAdSchema

public JobAdSchema(java.lang.String[] values)
            throws java.lang.ArrayIndexOutOfBoundsException
CUSTOM schema constructor

Parameters:
values - an array of string of #SCHEMA_ARRAY dimension throw ArrayIndexOutOfBoundsException the length of value must be of the exact dimension
See Also:
SCHEMA_ARRAY
Method Detail

glueSchema

public static JobAdSchema glueSchema()
GLUE schema static constructor (JobAd default utilised schema)


get

public java.lang.String get(int attrName)
                     throws java.lang.ArrayIndexOutOfBoundsException
Retrieve a default value from the schema

Parameters:
attrName - refers to the attributes of the Schema, must be less than #SCHEMA_ARRAY
Returns:
the String value of the specified attribute
java.lang.ArrayIndexOutOfBoundsException
See Also:
SCHEMA_ARRAY