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 TypeMethodDescriptionvoid
close()
Class<? extends IBoundObject>
Get the Java class representing the detected bound object.@Owning InputStream
Get anInputStream
that 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 anInputStream
that can be used to read the analyzed data from the start.- Returns:
- the stream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-