org.pf.tools.cda.core.init
Class OdemXmlContainerSpecification

java.lang.Object
  extended by org.pf.file.ClasspathElement
      extended by org.pf.tools.cda.base.model.util.ContainerSpecificationElement
          extended by org.pf.tools.cda.core.init.OdemXmlContainerSpecification

public class OdemXmlContainerSpecification
extends ContainerSpecificationElement

Holds the declaring data of a container and its content. This data was provided as ODEM/XML meta data rather than from class binaries.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
OdemXmlContainerSpecification(java.lang.String containerName, org.pf.six.Element xml)
          Initialize the new instance with default values.
 
Method Summary
 org.pf.six.Element[] getDependencyElements(ClassInformation classInfo)
          Returns the dependency element that are defined below the element that corresponds to the given classInfo.
 org.pf.six.Element getNamespaceElement(java.lang.String name)
          Returns the namespace element with the given name in this container or null if it cannot be found.
 org.pf.six.Element[] getNamespaceElements()
          Returns all namespace elements in this container.
 org.pf.six.Element getTypeElement(ClassInformation classInfo)
          Returns the type element in this container that corresponds to the given classInfo or null if it cannot be found.
 boolean isMetaData()
          Returns true if this element specifies containers and their content by meta data rather than defining the location of binary class files.
 
Methods inherited from class org.pf.tools.cda.base.model.util.ContainerSpecificationElement
isArchive, isDirectory
 
Methods inherited from class org.pf.file.ClasspathElement
close, contains, createURL, equals, exists, getFileInfo, getName, getURL, hashCode, isFile, isOpen, isValid, leaveArchiveOpen, leaveArchiveOpen, open, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OdemXmlContainerSpecification

public OdemXmlContainerSpecification(java.lang.String containerName,
                                     org.pf.six.Element xml)
Initialize the new instance with default values.

Method Detail

isMetaData

public boolean isMetaData()
Description copied from class: ContainerSpecificationElement
Returns true if this element specifies containers and their content by meta data rather than defining the location of binary class files.

Overrides:
isMetaData in class ContainerSpecificationElement

getNamespaceElements

public org.pf.six.Element[] getNamespaceElements()
Returns all namespace elements in this container.


getNamespaceElement

public org.pf.six.Element getNamespaceElement(java.lang.String name)
Returns the namespace element with the given name in this container or null if it cannot be found.

Parameters:
name - The name of the namespace to lookup

getTypeElement

public org.pf.six.Element getTypeElement(ClassInformation classInfo)
Returns the type element in this container that corresponds to the given classInfo or null if it cannot be found.


getDependencyElements

public org.pf.six.Element[] getDependencyElements(ClassInformation classInfo)
Returns the dependency element that are defined below the element that corresponds to the given classInfo.