gr.uoa.di.madgik.execution.datatype
Class NamedDataType

java.lang.Object
  extended by gr.uoa.di.madgik.execution.datatype.NamedDataType

public class NamedDataType
extends Object

This class acts as a named container of IDataTypes and is the key class involved in variable definition of an ExecutionPlan and the corresponding VariableCollection of the plan


Field Summary
 Boolean IsAvailable
          Whether the value for this type is available.
 String Name
          The Name of the type.
 String Token
          The Token of the type.
 IDataType Value
          The actual type.
 
Constructor Summary
NamedDataType()
           
 
Method Summary
 boolean equals(Object o)
          Checks if the two instances are equal.
 void FromXML(Element XML)
          Parses the provided serialization as returned by ToXML()
 void FromXML(String XML)
          Parses the provided serialization as returned by ToXML()
 int hashCode()
           
 String ToXML()
          Creates an XML serialization of the named data type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public String Name
The Name of the type.


Token

public String Token
The Token of the type.


IsAvailable

public Boolean IsAvailable
Whether the value for this type is available.


Value

public IDataType Value
The actual type.

Constructor Detail

NamedDataType

public NamedDataType()
Method Detail

ToXML

public String ToXML()
             throws ExecutionSerializationException
Creates an XML serialization of the named data type

Returns:
The serialization
Throws:
ExecutionSerializationException - A serialization error occurred

FromXML

public void FromXML(String XML)
             throws ExecutionSerializationException
Parses the provided serialization as returned by ToXML()

Parameters:
XML - The XML serialization to parse
Throws:
ExecutionSerializationException - A serialization error occurred

FromXML

public void FromXML(Element XML)
             throws ExecutionSerializationException
Parses the provided serialization as returned by ToXML()

Parameters:
XML - the root element of the serialization
Throws:
ExecutionSerializationException - A serialization error occurred

equals

public boolean equals(Object o)
Checks if the two instances are equal. Two instances are considered equal only if they are both of type NamedDataType, the Name is equal, the Token is equal, the IsAvailable is the same and the IDataType#equals(Object) also evaluates to true.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.