sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/ImportSpecHandler.java
private void transformsFromJson() throws Exception{
		
		int tcount = this.importspec.getNumTransforms();
		
		for (int i = 0; i < tcount; ++i) {
			String instanceID = this.importspec.getTransformId(i); 
			String transType = this.importspec.getTransformType(i);  
			
			// go through all the entries besides "name", "transType", "transId" and 
			// add them to the outgoing HashMap to be sent to the transform creation.
			int totalArgs = TransformInfo.getArgCount(transType);
			
			// get the args.
			HashMap<String, String> args = new HashMap<String, String>();
			if (totalArgs == 2) {
				args.put("arg1", this.importspec.getTransformArg1(i));
				args.put("arg2", this.importspec.getTransformArg2(i));
			}
			
			// get the transform instance.
			Transform currXform = TransformInfo.buildTransform(transType, instanceID, args);
			
			// add it to the hashMap.
			this.transformHash.put(instanceID, currXform);
		}
	}
/**
	 * Populate the transforms with the correct instances based on the importspec.
	 * @throws Exception 
	 */
Populate the transforms with the correct instances based on the importspec.
@throws Exception
Populate the transforms with the correct instances based on the importspec . @throws Exception
private void transformsFromJson() throws Exception{
		int tcount = this.importspec.getNumTransforms();
		for (int i = 0; i < tcount; ++i) {
			String instanceID = this.importspec.getTransformId(i); 
			String transType = this.importspec.getTransformType(i);  
			int totalArgs = TransformInfo.getArgCount(transType);
			HashMap<String, String> args = new HashMap<String, String>();
			if (totalArgs == 2) {
				args.put("arg1", this.importspec.getTransformArg1(i));
				args.put("arg2", this.importspec.getTransformArg2(i));
			}
			Transform currXform = TransformInfo.buildTransform(transType, instanceID, args);
			this.transformHash.put(instanceID, currXform);
		}
	}
private void transformsFromJson ( ) throws Exception { int tcount = this . importspec . getNumTransforms ( ) ; for ( int i = 0 ; i < tcount ; ++ i ) { String instanceID = this . importspec . getTransformId ( i ) ; String transType = this . importspec . getTransformType ( i ) ; int totalArgs = TransformInfo . getArgCount ( transType ) ; HashMap < String , String > args = new HashMap < String , String > ( ) ; if ( totalArgs == 2 ) { args . put ( "arg1" , this . importspec . getTransformArg1 ( i ) ) ; args . put ( "arg2" , this . importspec . getTransformArg2 ( i ) ) ; } Transform currXform = TransformInfo . buildTransform ( transType , instanceID , args ) ; this . transformHash . put ( instanceID , currXform ) ; } }
Populate the transforms with the correct instances based on the importspec.
Populate the transforms with the correct instances based on the importspec .
// go through all the entries besides "name", "transType", "transId" and  // add them to the outgoing HashMap to be sent to the transform creation. // get the args. // get the transform instance. // add it to the hashMap.