Package net.aifusion.metamodel
Interface Parser
- All Known Implementing Classes:
MOFParser
public interface Parser
This interface is implemented by all CIM parsers
- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionGet the repository being used by the parservoid
parse
(BufferedReader input, NameSpacePath path) Parse the specification given in a buffered stream into the parser repositoryvoid
parse
(InputStream input, NameSpacePath path) Parse the specification given in an inputstream into the parser repositoryvoid
parse
(String fileName, NameSpacePath path) Parse the specification given in a file into the parser repositoryparseValue
(String indication, NameSpacePath path) Parse a structure value from an incoming indication
-
Method Details
-
parse
Parse the specification given in a file into the parser repository- Parameters:
fileName
- - name of the file to be parsedpath
- - optional namespace. If non-null, the parser will initialize to the given path before parsing the file
-
parse
Parse the specification given in a buffered stream into the parser repository- Parameters:
input
- - input readerpath
- - optional name space. if non-null, the parser will initialize to the name space before parsing the input
-
parse
Parse the specification given in an inputstream into the parser repository- Parameters:
input
- - input streampath
- - optional name space. if non-null, the parser will initialize to the name space before parsing the input
-
getRepository
Repository getRepository()Get the repository being used by the parser- Returns:
- - repository being used by the parser
-
parseValue
Parse a structure value from an incoming indication- Parameters:
indication
- - value of the indicationpath
- - optional name space. if non-null, the parser will initialize to the name space before parsing the input- Returns:
- - incoming structure value; null if none found
-