de.hpi.fgis.voidgen.hadoop.config
Class Property

java.lang.Object
  extended by de.hpi.fgis.voidgen.hadoop.config.Property

public class Property
extends java.lang.Object

Describing a Property of Hadoop Job configurations.

Author:
Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany

Constructor Summary
Property()
          Constructor.
Property(java.lang.String name, java.lang.String value, java.lang.String description)
          Constructor.
 
Method Summary
 void addValue(java.lang.String value)
          Adds a single value to the current Property.
 java.lang.String getDescription()
           
static java.lang.String getGenoptprefix()
           
 java.lang.String getName()
           
static java.lang.String getSep()
           
 java.lang.String getValue()
           
static java.lang.String getValuesep()
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setValue(java.lang.String value)
           
 java.lang.String toGenericOption()
          Converts this Property into a String that can be used as generic option for configuration of a Hadoop job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(java.lang.String name,
                java.lang.String value,
                java.lang.String description)
Constructor.

Parameters:
name - The name.
value - The value String.
description - The description of this Property.

Property

public Property()
Constructor.

Method Detail

addValue

public void addValue(java.lang.String value)
              throws java.lang.IllegalArgumentException
Adds a single value to the current Property.

Parameters:
value - The value to add.
Throws:
java.lang.IllegalArgumentException - if the given value contains reserved char sequences

toGenericOption

public java.lang.String toGenericOption()
Converts this Property into a String that can be used as generic option for configuration of a Hadoop job.

Returns:
generic option from property name and value

getGenoptprefix

public static java.lang.String getGenoptprefix()

getSep

public static java.lang.String getSep()

getValuesep

public static java.lang.String getValuesep()

getDescription

public java.lang.String getDescription()

getName

public java.lang.String getName()

getValue

public java.lang.String getValue()

setDescription

public void setDescription(java.lang.String description)

setName

public void setName(java.lang.String name)

setValue

public void setValue(java.lang.String value)