com.ge.grc.acuity.editor
Class CSVRestrictionImporterExporter

java.lang.Object
  extended bycom.ge.grc.acuity.editor.CSVRestrictionImporterExporter

public class CSVRestrictionImporterExporter
extends java.lang.Object


Field Summary
static java.lang.String CLEAN_CMD
           
 
Constructor Summary
CSVRestrictionImporterExporter(AcuityEditorParts _aep)
           
 
Method Summary
static void encodeForHTML(java.util.List rows)
           
 java.lang.String exportEditableTableContent(AcuityController ac, com.hp.hpl.jena.rdf.model.Resource tableRoot, java.util.List[] data, java.lang.String fn)
           
 java.lang.String exportModel(AcuityController ac, com.hp.hpl.jena.ontology.OntModel editableModel, java.lang.String fn)
           
 java.util.List getAllRestrictions(java.lang.String csvFile)
           
 java.lang.Object processNewRestrictions(AcuityController ac, com.hp.hpl.jena.ontology.OntModel editableModel, java.util.List restrictions, boolean bAddToModel, boolean bValidityCheckBeforeImport)
           
 java.lang.String restrictionsWellFormed(java.util.List restrictions)
          Call this method to check the well-formedness of restrictions in the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAN_CMD

public static final java.lang.String CLEAN_CMD
See Also:
Constant Field Values
Constructor Detail

CSVRestrictionImporterExporter

public CSVRestrictionImporterExporter(AcuityEditorParts _aep)
Method Detail

getAllRestrictions

public java.util.List getAllRestrictions(java.lang.String csvFile)
                                  throws AcuityException
Throws:
AcuityException

processNewRestrictions

public java.lang.Object processNewRestrictions(AcuityController ac,
                                               com.hp.hpl.jena.ontology.OntModel editableModel,
                                               java.util.List restrictions,
                                               boolean bAddToModel,
                                               boolean bValidityCheckBeforeImport)
                                        throws AcuityException
Throws:
AcuityException

encodeForHTML

public static void encodeForHTML(java.util.List rows)

exportEditableTableContent

public java.lang.String exportEditableTableContent(AcuityController ac,
                                                   com.hp.hpl.jena.rdf.model.Resource tableRoot,
                                                   java.util.List[] data,
                                                   java.lang.String fn)

exportModel

public java.lang.String exportModel(AcuityController ac,
                                    com.hp.hpl.jena.ontology.OntModel editableModel,
                                    java.lang.String fn)
                             throws AcuityException
Throws:
AcuityException

restrictionsWellFormed

public java.lang.String restrictionsWellFormed(java.util.List restrictions)
Call this method to check the well-formedness of restrictions in the file.

Parameters:
restrictions - - the data--List of Lists, each element List must have 4 values
Returns:
- null if well formed else a String describing the problems.