Package org.neuroml.model.util
Class NeuroML2Validator
java.lang.Object
org.neuroml.model.util.NeuroML2Validator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isValid()
static void
final void
reset()
void
static void
testValidity
(File xmlFile, String xsdFile) static void
testValidity
(File xmlFile, StreamSource schemaFileSource) void
testValidityAgainstNeuroML2Schema
(File xmlFile) void
validateWithTests
(File xmlFile) void
validateWithTests
(NeuroMLDocument nml2doc)
-
Field Details
-
VALID_AGAINST_SCHEMA
- See Also:
-
VALID_AGAINST_TESTS
- See Also:
-
VALID_AGAINST_SCHEMA_AND_TESTS
- See Also:
-
NO_WARNINGS
- See Also:
-
TEST_TOP_LEVEL_REPEATED_IDS
-
TEST_NETWORK_REPEATED_IDS
-
TEST_REPEATED_IDS
-
TEST_ONE_SEG_MISSING_PARENT
-
TEST_MEMBER_SEGMENT_EXISTS
-
TEST_REPEATED_GROUPS
-
WARN_INCLUDE_SEGMENT_GROUP_ORDER
-
TEST_INCLUDE_SEGMENT_GROUP_EXISTS
-
TEST_SEGMENT_GROUP_IN_BIOPHYSICS_EXISTS
-
TEST_NUM_INT_DIVS_SEGMENT_GROUP
-
TEST_INCLUDED_FILES_EXIST
-
TEST_POPULATION_COMPONENT_EXISTS
-
TEST_ION_CHANNEL_EXISTS
-
TEST_CONC_MODEL_EXISTS
-
TEST_POPULATION_SIZE_MATCHES_INSTANCES
-
TEST_POPULATIONS_IN_PROJECTIONS
-
TEST_SEGMENT_ID_IN_CONNECTION
-
TEST_FORMATTING_CELL_ID_IN_CONNECTION
-
TEST_SYNAPSE_IN_PROJECTION
-
WARN_ROOT_ID_0
-
-
Constructor Details
-
NeuroML2Validator
public NeuroML2Validator()
-
-
Method Details
-
reset
public final void reset() -
getValidity
-
isValid
public boolean isValid() -
getWarnings
-
hasWarnings
public boolean hasWarnings() -
setBaseDirectory
-
validateWithTests
- Throws:
SAXException
IOException
NeuroMLException
-
validateWithTests
- Throws:
NeuroMLException
-
testValidityAgainstNeuroML2Schema
- Throws:
SAXException
IOException
-
testValidity
- Throws:
SAXException
IOException
-
testValidity
public static void testValidity(File xmlFile, StreamSource schemaFileSource) throws SAXException, IOException - Throws:
SAXException
IOException
-
main
- Throws:
Exception
-