net.dpml.transit.info
Class CodeBaseDirective

java.lang.Object
  extended bynet.dpml.lang.AbstractDirective
      extended bynet.dpml.transit.info.CodeBaseDirective
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationDescriptor, LayoutDirective

public class CodeBaseDirective
extends AbstractDirective

The CodeBaseDirective is immutable datastructure used to describe a codebase.

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

Constructor Summary
CodeBaseDirective(URI codebase, ValueDirective[] parameters)
          Creation of a new codebase descriptor.
 
Method Summary
 boolean equals(Object other)
          Test if the supplied object is equal to this object.
 URI getCodeBaseURI()
          Return the codebase URI.
 String getCodeBaseURISpec()
          Return the codebase URI as a string.
 ValueDirective[] getValueDirectives()
          Return the array of codebase parameter values.
 int hashCode()
          Compute the instance hashcode value.
 
Methods inherited from class net.dpml.lang.AbstractDirective
equals, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeBaseDirective

public CodeBaseDirective(URI codebase,
                         ValueDirective[] parameters)
Creation of a new codebase descriptor.

Parameters:
codebase - the codebase uri
parameters - an array of plugin parameter descriptors
Method Detail

getCodeBaseURI

public URI getCodeBaseURI()
Return the codebase URI.

Returns:
the codebase uri

getCodeBaseURISpec

public String getCodeBaseURISpec()
Return the codebase URI as a string.

Returns:
the codebase uri specification

getValueDirectives

public ValueDirective[] getValueDirectives()
Return the array of codebase parameter values.

Returns:
the parameter value array

equals

public boolean equals(Object other)
Test if the supplied object is equal to this object.

Overrides:
equals in class AbstractDirective
Parameters:
other - the object to evaluate
Returns:
true if this object is equal to the supplied object

hashCode

public int hashCode()
Compute the instance hashcode value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hashcode