edu.sdsc.inca
Class WrapConfig

java.lang.Object
  extended by edu.sdsc.inca.WrapConfig

public class WrapConfig
extends java.lang.Object

A class that wraps an IncaDocument.


Field Summary
protected  edu.sdsc.inca.dataModel.inca.IncaDocument doc
           
protected  edu.sdsc.inca.dataModel.inca.IncaDocument.Inca inca
           
 
Constructor Summary
WrapConfig()
          Creates a new WrapConfig.
WrapConfig(java.lang.String xml)
          Creates a new WrapConfig by parsing XML.
 
Method Summary
 WrapConfig copy()
          Return a copy of this object.
 WrapConfig differences(WrapConfig wc)
          Returns a new WrapConfig that contains the modifications necessary to produce a specified WrapConfig from this one.
 boolean equals(java.lang.Object o)
          Override of the default equals method.
 java.lang.String[] getRepositories()
          Returns the set of configuration repositories.
 WrapResource[] getResources()
          Returns the set of configuration resources.
 WrapSuite[] getSuites()
          Returns the set of configuration suites.
 void setRepositories(java.lang.String[] repositories)
          Sets the configuration repositories to a specified set.
 void setResources(WrapResource[] resources)
          Sets the configuration resources to a specified set.
 void setSuites(WrapSuite[] suites)
          Sets the configuration suites to a specified set.
 java.lang.String toXml()
          Returns XML for the configuration.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected edu.sdsc.inca.dataModel.inca.IncaDocument doc

inca

protected edu.sdsc.inca.dataModel.inca.IncaDocument.Inca inca
Constructor Detail

WrapConfig

public WrapConfig()
Creates a new WrapConfig.


WrapConfig

public WrapConfig(java.lang.String xml)
           throws org.apache.xmlbeans.XmlException
Creates a new WrapConfig by parsing XML.

Parameters:
xml - the IncaDocument XML
Throws:
org.apache.xmlbeans.XmlException - if the XML is invalid
Method Detail

copy

public WrapConfig copy()
Return a copy of this object.

Returns:
A copy of this object.

differences

public WrapConfig differences(WrapConfig wc)
Returns a new WrapConfig that contains the modifications necessary to produce a specified WrapConfig from this one.

Parameters:
wc - the modified WrapConfig
Returns:
a new WrapConfig that shows the differences needed to produce wc

equals

public boolean equals(java.lang.Object o)
Override of the default equals method.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare to this one
Returns:
true iff o specifies the same config

getRepositories

public java.lang.String[] getRepositories()
Returns the set of configuration repositories.

Returns:
the configuration repositories, null if none

getResources

public WrapResource[] getResources()
Returns the set of configuration resources.

Returns:
the configuration resources, null if none

getSuites

public WrapSuite[] getSuites()
Returns the set of configuration suites.

Returns:
the configuration suites, null if none

setRepositories

public void setRepositories(java.lang.String[] repositories)
Sets the configuration repositories to a specified set.

Parameters:
repositories - the configuration repositories, null for none

setResources

public void setResources(WrapResource[] resources)
Sets the configuration resources to a specified set.

Parameters:
resources - the configuration resources, null for none

setSuites

public void setSuites(WrapSuite[] suites)
Sets the configuration suites to a specified set.

Parameters:
suites - the configuration suites, null for none

toXml

public java.lang.String toXml()
Returns XML for the configuration.

Returns:
the configuration, as an XML string