View Javadoc

1   package gov.nasa.pds.ltdt.testLabel;
2   
3   import gov.nasa.pds.tools.dict.ElementDefinition;
4   import gov.nasa.pds.tools.dict.type.InvalidTypeException;
5   
6   /***
7    * Will always return a value of "NULL" since a context dependent
8    * type can vary depending on how the element is used in an object.
9    * 
10   * @author mcayanan
11   *
12   */
13  public class ContextDependentTestValue implements TestValue {
14  
15  	//Since context dependent types don't have a definitive data
16  	//type, best thing to do is to give a "NULL" test value.
17  	public Object getTestValue(ElementDefinition element) throws InvalidTypeException {
18  		return new String("\"NULL\"");
19  	}
20  	
21  }