Package edu.isi.pegasus.planner.dax
Class MetaData
- java.lang.Object
-
- edu.isi.pegasus.planner.dax.MetaData
-
public class MetaData extends java.lang.Object
Metadata object for the DAX API- Version:
- $Revision$
- Author:
- gmehta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetaData.JsonSerializer
Custom serializer for YAML representation of a MetaData k,v pair
-
Constructor Summary
Constructors Modifier Constructor Description MetaData(MetaData m)
Copy constructorMetaData(java.lang.String key, java.lang.String value)
Create a new Metadata objectprivate
MetaData(java.lang.String type, java.lang.String key, java.lang.String value)
Create a new Metadata object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaData
clone()
Create a copy of this Metdata Objectjava.lang.String
getKey()
Get the key of this metadata objectprivate java.lang.String
getType()
Get the type of the metdata objectjava.lang.String
getValue()
Get the value of the metdata objectMetaData
setValue(java.lang.String value)
Set the value of the metadatavoid
toXML(edu.isi.pegasus.common.util.XMLWriter writer)
void
toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
-
-
-
Constructor Detail
-
MetaData
public MetaData(MetaData m)
Copy constructor- Parameters:
m
- the MetaData object being copied from
-
MetaData
public MetaData(java.lang.String key, java.lang.String value)
Create a new Metadata object- Parameters:
key
- the keyvalue
- the value
-
MetaData
private MetaData(java.lang.String type, java.lang.String key, java.lang.String value)
Create a new Metadata object- Parameters:
type
- type of metadatakey
- the keyvalue
- the value
-
-
Method Detail
-
clone
public MetaData clone()
Create a copy of this Metdata Object- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of the object
-
setValue
public MetaData setValue(java.lang.String value)
Set the value of the metadata- Parameters:
value
- value to be set for metadata attribute- Returns:
- MetaData
-
getKey
public java.lang.String getKey()
Get the key of this metadata object- Returns:
- the key
-
getType
private java.lang.String getType()
Get the type of the metdata object- Returns:
- the type
-
getValue
public java.lang.String getValue()
Get the value of the metdata object- Returns:
- the value
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer)
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent)
-
-