Package org.neuroml.model.util
Class NeuroMLConverter
java.lang.Object
org.neuroml.model.util.NeuroMLConverter
-
Field Summary
Modifier and TypeFieldDescriptionprotected static JAXBContext
protected static Marshaller
protected static Unmarshaller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addElementToDocument
(NeuroMLDocument nmlDocument, Standalone nmlElement) static String
static String
static String
convertNeuroML2ToLems
(String nml2string) static LinkedHashMap<String,
Standalone> getAllStandaloneElements
(NeuroMLDocument nmlDocument) static float
static int
static int
static int
static int
loadNeuroML
(File xmlFile) loadNeuroML
(File xmlFile, boolean includeIncludes) loadNeuroML
(File xmlFile, boolean includeIncludes, boolean failOnMissingIncludes) loadNeuroML
(File xmlFile, boolean includeIncludes, boolean failOnMissingIncludes, ArrayList<String> alreadyIncluded) loadNeuroML
(String nml2Contents) loadNeuroML
(String nml2Contents, boolean includeIncludes, File baseDirectoryForIncludes) loadNeuroML
(String nml2Contents, boolean includeIncludes, File baseDirectoryForIncludes, ArrayList<String> alreadyIncluded) loadNeuroMLOptimized
(File xmlOrH5File) loadNeuroMLOptimized
(File xmlOrH5File, boolean includeIncludes) static void
neuroml2ToXml
(NeuroMLDocument nml2) neuroml2ToXml
(NeuroMLDocument nml2, String filename) static String
summary
(NeuroMLDocument nmlDocument) static String
summary
(NeuroMLDocument nmlDocument, boolean full) urlToNeuroML
(URL url) xmlToMorphology
(String xmlFile)
-
Field Details
-
jaxb
-
marshaller
-
unmarshaller
-
-
Constructor Details
-
NeuroMLConverter
- Throws:
NeuroMLException
-
-
Method Details
-
xmlToMorphology
-
loadNeuroMLOptimized
- Throws:
NeuroMLException
-
loadNeuroMLOptimized
- Throws:
NeuroMLException
-
loadNeuroMLOptimized
public NetworkHelper loadNeuroMLOptimized(File xmlOrH5File, boolean includeIncludes) throws NeuroMLException - Throws:
NeuroMLException
-
loadNeuroML
- Throws:
IOException
NeuroMLException
-
loadNeuroML
public NeuroMLDocument loadNeuroML(File xmlFile, boolean includeIncludes) throws IOException, NeuroMLException - Throws:
IOException
NeuroMLException
-
loadNeuroML
public NeuroMLDocument loadNeuroML(File xmlFile, boolean includeIncludes, boolean failOnMissingIncludes) throws IOException, NeuroMLException - Throws:
IOException
NeuroMLException
-
loadNeuroML
public NeuroMLDocument loadNeuroML(File xmlFile, boolean includeIncludes, boolean failOnMissingIncludes, ArrayList<String> alreadyIncluded) throws NeuroMLException, IOException - Throws:
NeuroMLException
IOException
-
loadNeuroML
- Throws:
NeuroMLException
-
loadNeuroML
public NeuroMLDocument loadNeuroML(String nml2Contents, boolean includeIncludes, File baseDirectoryForIncludes) throws NeuroMLException - Throws:
NeuroMLException
-
loadNeuroML
public NeuroMLDocument loadNeuroML(String nml2Contents, boolean includeIncludes, File baseDirectoryForIncludes, ArrayList<String> alreadyIncluded) throws NeuroMLException - Throws:
NeuroMLException
-
urlToNeuroML
- Throws:
NeuroMLException
-
summary
- Throws:
NeuroMLException
-
summary
- Throws:
NeuroMLException
-
getPreCellId
-
getPostCellId
-
connectionInfo
-
connectionInfo
-
getTargetCellId
-
getSegmentId
-
getFractionAlong
-
getAllStandaloneElements
public static LinkedHashMap<String,Standalone> getAllStandaloneElements(NeuroMLDocument nmlDocument) throws NeuroMLException - Throws:
NeuroMLException
-
addElementToDocument
public static void addElementToDocument(NeuroMLDocument nmlDocument, Standalone nmlElement) throws NeuroMLException - Throws:
NeuroMLException
-
neuroml2ToXml
- Throws:
NeuroMLException
-
neuroml2ToXml
public File neuroml2ToXml(NeuroMLDocument nml2, String filename) throws NeuroMLException, IOException - Throws:
NeuroMLException
IOException
-
convertNeuroML2ToLems
-
main
- Throws:
Exception
-