org.jlab.coda.afecs.cool.parser
Class CParser

java.lang.Object
  extended by org.jlab.coda.afecs.cool.parser.CParser

public class CParser
extends java.lang.Object

JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), Aug 31, 2009


Constructor Summary
CParser()
           
 
Method Summary
 com.hp.hpl.jena.rdf.model.Model getModel()
          public method returns final model
 boolean openFile(java.lang.String fileName, boolean debug)
          Constructor
 AControl parseControl(java.lang.String name)
          parses Cool control concept and fills AControl objet
 void printStatements(com.hp.hpl.jena.rdf.model.Model model)
          Debugging mrthod prints all the rdf/cool statements of the model
 void resetModelList()
          Resets the arraylist of all included models
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CParser

public CParser()
Method Detail

openFile

public boolean openFile(java.lang.String fileName,
                        boolean debug)
Constructor

Parameters:
fileName - of the rdf/cool configuration file
debug - if true prints statements of the cool description
Returns:
stat status of construction

parseControl

public AControl parseControl(java.lang.String name)
parses Cool control concept and fills AControl objet

Parameters:
name - of the control
Returns:
AControl object

getModel

public com.hp.hpl.jena.rdf.model.Model getModel()
public method returns final model

Returns:
union of the all included models

resetModelList

public void resetModelList()
Resets the arraylist of all included models


printStatements

public void printStatements(com.hp.hpl.jena.rdf.model.Model model)
Debugging mrthod prints all the rdf/cool statements of the model

Parameters:
model - Jena model object