uk.ac.essex.ia.opview.xml
Class Connections

java.lang.Object
  extended by uk.ac.essex.ia.opview.xml.Connections
All Implemented Interfaces:
java.io.Serializable

public class Connections
extends java.lang.Object
implements java.io.Serializable

Class Connections.

See Also:
Serialized Form

Constructor Summary
Connections()
           
 
Method Summary
 void deleteAllowedInputs()
           
 void deleteAllowedOutputs()
           
 void deleteRequiredInputs()
           
 int getAllowedInputs()
          Returns the value of field 'allowedInputs'.
 int getAllowedOutputs()
          Returns the value of field 'allowedOutputs'.
 int getRequiredInputs()
          Returns the value of field 'requiredInputs'.
 boolean hasAllowedInputs()
          Method hasAllowedInputs.
 boolean hasAllowedOutputs()
          Method hasAllowedOutputs.
 boolean hasRequiredInputs()
          Method hasRequiredInputs.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setAllowedInputs(int allowedInputs)
          Sets the value of field 'allowedInputs'.
 void setAllowedOutputs(int allowedOutputs)
          Sets the value of field 'allowedOutputs'.
 void setRequiredInputs(int requiredInputs)
          Sets the value of field 'requiredInputs'.
static Connections unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connections

public Connections()
Method Detail

deleteAllowedInputs

public void deleteAllowedInputs()

deleteAllowedOutputs

public void deleteAllowedOutputs()

deleteRequiredInputs

public void deleteRequiredInputs()

getAllowedInputs

public int getAllowedInputs()
Returns the value of field 'allowedInputs'.

Returns:
the value of field 'AllowedInputs'.

getAllowedOutputs

public int getAllowedOutputs()
Returns the value of field 'allowedOutputs'.

Returns:
the value of field 'AllowedOutputs'.

getRequiredInputs

public int getRequiredInputs()
Returns the value of field 'requiredInputs'.

Returns:
the value of field 'RequiredInputs'.

hasAllowedInputs

public boolean hasAllowedInputs()
Method hasAllowedInputs.

Returns:
true if at least one AllowedInputs has been added

hasAllowedOutputs

public boolean hasAllowedOutputs()
Method hasAllowedOutputs.

Returns:
true if at least one AllowedOutputs has been added

hasRequiredInputs

public boolean hasRequiredInputs()
Method hasRequiredInputs.

Returns:
true if at least one RequiredInputs has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setAllowedInputs

public void setAllowedInputs(int allowedInputs)
Sets the value of field 'allowedInputs'.

Parameters:
allowedInputs - the value of field 'allowedInputs'.

setAllowedOutputs

public void setAllowedOutputs(int allowedOutputs)
Sets the value of field 'allowedOutputs'.

Parameters:
allowedOutputs - the value of field 'allowedOutputs'.

setRequiredInputs

public void setRequiredInputs(int requiredInputs)
Sets the value of field 'requiredInputs'.

Parameters:
requiredInputs - the value of field 'requiredInputs'.

unmarshal

public static Connections unmarshal(java.io.Reader reader)
                             throws org.exolab.castor.xml.MarshalException,
                                    org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled uk.ac.essex.ia.opview.xml.Connections
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema