Class ModelDetector.Result
java.lang.Object
gov.nist.secauto.metaschema.databind.io.ModelDetector.Result
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- ModelDetector
Describes the result of detecting which model a resource is described by.
The method getBoundClass() can be used to get class binding for the
identified node in a Metaschema-based model.
The method getDataStream() can be used to get a stream to read the
content used for detection. This will replay any content used for detection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Class<? extends IBoundObject>Get the Java class representing the detected bound object.@Owning InputStreamGet anInputStreamthat can be used to read the analyzed data from the start.
-
Method Details
-
getBoundClass
Get the Java class representing the detected bound object.- Returns:
- the Java class
-
getDataStream
Get anInputStreamthat can be used to read the analyzed data from the start.- Returns:
- the stream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-