com.ge.grc.acuity.editor
Class CSVRestrictionImporterExporter
java.lang.Object
com.ge.grc.acuity.editor.CSVRestrictionImporterExporter
- public class CSVRestrictionImporterExporter
- extends java.lang.Object
|
Field Summary |
static java.lang.String |
CLEAN_CMD
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLEAN_CMD
public static final java.lang.String CLEAN_CMD
- See Also:
- Constant Field Values
CSVRestrictionImporterExporter
public CSVRestrictionImporterExporter(AcuityEditorParts _aep)
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.