org.apache.rat.api
Class MetaData.Datum

java.lang.Object
  extended by org.apache.rat.api.MetaData.Datum
Enclosing class:
MetaData

public static final class MetaData.Datum
extends Object

A datum.


Constructor Summary
MetaData.Datum(String name, String value)
          Constructs a datum.
 
Method Summary
 String getName()
          Gets the name of the data type.
 String getValue()
          Data type value.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaData.Datum

public MetaData.Datum(String name,
                      String value)
Constructs a datum.

Parameters:
name - not null
value - not null
Method Detail

getName

public String getName()
Gets the name of the data type. To avoid collisions, it is recommended that URLs are used.

Returns:
not null

getValue

public String getValue()
Data type value.

Returns:
not null

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.