net.dpml.library.info
Class LibraryDirective

java.lang.Object
  extended by net.dpml.library.info.AbstractDirective
      extended by net.dpml.library.info.LibraryDirective
All Implemented Interfaces:
Serializable

public final class LibraryDirective
extends AbstractDirective

The LibraryDirective class describes a collection of modules together with information about type defintions.

Version:
1.2.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
LibraryDirective(ImportDirective[] imports, ResourceDirective[] resources, Properties properties)
          Creation of a new library directive.
 
Method Summary
 boolean equals(Object other)
          Compare this object with another for equality.
 ImportDirective[] getImportDirectives()
          Return the set of module imports.
 ResourceDirective[] getResourceDirectives()
          Return the set of module directives.
 int hashCode()
          Compute the hashcode value.
 
Methods inherited from class net.dpml.library.info.AbstractDirective
equals, getProperties, getProperty, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryDirective

public LibraryDirective(ImportDirective[] imports,
                        ResourceDirective[] resources,
                        Properties properties)
Creation of a new library directive.

Parameters:
imports - module imports
resources - the set of declared resources
properties - library properties
Method Detail

getImportDirectives

public ImportDirective[] getImportDirectives()
Return the set of module imports.

Returns:
the module import array

getResourceDirectives

public ResourceDirective[] getResourceDirectives()
Return the set of module directives.

Returns:
the resource directive array

equals

public boolean equals(Object other)
Compare this object with another for equality.

Overrides:
equals in class AbstractDirective
Parameters:
other - the other object
Returns:
true if equal

hashCode

public int hashCode()
Compute the hashcode value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hash value