java.lang.Object
com.aendvari.cerberus.component.descriptor.parser.DescriptorParser
com.aendvari.cerberus.component.descriptor.parser.AssemblyParser
- public class AssemblyParser
- extends DescriptorParser
Constructs a com.aendvari.cerberus.component.descriptor.AssemblyDescriptor from the content of a com.aendvari.common.model.ModelNode.
The com.aendvari.common.model.ModelNode contains an assembly descriptor.
This class only reads the content of the com.aendvari.common.model.ModelNode, it does not attempt to verify the data.
|
Constructor Summary |
AssemblyParser()
Constructs a AssemblyParser instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
definitionParser
protected DefinitionParser definitionParser
- Parses component definitions.
instanceParser
protected InstanceParser instanceParser
- Parses component instances.
AssemblyParser
public AssemblyParser()
- Constructs a
AssemblyParser instance.
parseInclude
private void parseInclude(com.aendvari.common.model.ModelNode objectNode,
com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
throws ParserException
- Parses an include into the assembly descriptor. The content of the included descriptor
is placed into the supplied assembly descriptor.
parseAssembly
private void parseAssembly(com.aendvari.common.model.ModelNode assemblyNode,
com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
throws ParserException
- Parses the given com.aendvari.common.model.ModelNode containing a assembly descriptor. The com.aendvari.common.model.ModelNode
must be the element.
parseInclude
private void parseInclude(java.io.InputStream inputStream,
com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
throws ParserException
- Parses the content of the given
InputStream as a descriptor.
The top level Node of the document must be a , , or
element.
parse
public com.aendvari.cerberus.component.descriptor.AssemblyDescriptor parse(com.aendvari.common.model.ModelNode assemblyNode)
throws ParserException
- Parses the given com.aendvari.common.model.ModelNode containing a assembly descriptor. The com.aendvari.common.model.ModelNode
must be the element.
parse
public com.aendvari.cerberus.component.descriptor.AssemblyDescriptor parse(java.io.InputStream inputStream)
throws ParserException
- Parses the content of the given
InputStream as an assembly descriptor.