Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.cerberus.component.descriptor.parser
Class AssemblyParser  view AssemblyParser download AssemblyParser.java

java.lang.Object
  extended bycom.aendvari.cerberus.component.descriptor.parser.DescriptorParser
      extended bycom.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.


Nested Class Summary
private static interface AssemblyParser.NodeNames
          Constants for descriptor element names.
 
Field Summary
protected  DefinitionParser definitionParser
          Parses component definitions.
protected  InstanceParser instanceParser
          Parses component instances.
 
Constructor Summary
AssemblyParser()
          Constructs a AssemblyParser instance.
 
Method Summary
 com.aendvari.cerberus.component.descriptor.AssemblyDescriptor parse(java.io.InputStream inputStream)
          Parses the content of the given InputStream as an assembly descriptor.
 com.aendvari.cerberus.component.descriptor.AssemblyDescriptor parse(com.aendvari.common.model.ModelNode assemblyNode)
          Parses the given com.aendvari.common.model.ModelNode containing a assembly descriptor.
private  void parseAssembly(com.aendvari.common.model.ModelNode assemblyNode, com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
          Parses the given com.aendvari.common.model.ModelNode containing a assembly descriptor.
private  void parseInclude(java.io.InputStream inputStream, com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
          Parses the content of the given InputStream as a descriptor.
private  void parseInclude(com.aendvari.common.model.ModelNode objectNode, com.aendvari.cerberus.component.descriptor.AssemblyDescriptor assembly)
          Parses an include into the assembly descriptor.
 
Methods inherited from class com.aendvari.cerberus.component.descriptor.parser.DescriptorParser
parseMultiPartValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definitionParser

protected DefinitionParser definitionParser
Parses component definitions.


instanceParser

protected InstanceParser instanceParser
Parses component instances.

Constructor Detail

AssemblyParser

public AssemblyParser()
Constructs a AssemblyParser instance.

Method Detail

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.