Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.mappingAPI2
Class CustomData

    java.lang.Object
      es.upm.gib.mappingAPI2.CustomData

All Implemented Interfaces:
  java.io.Serializable

    public class CustomData

extends java.lang.Object
implements java.io.Serializable

This class contains some custom data of the mapping

See Also:
  Serialized Form

Constructor Summary
`CustomData()` Constructor
`CustomData(java.util.Map<java.lang.String,java.lang.String> values)`

Method Summary
`void` | `addValue(java.lang.String key, java.lang.String value)` Add new value to the custom Data
`boolean` | `contains(java.lang.String key)` Retrieves true if the element exists in the custom data
`java.lang.String` | `get(java.lang.String key)` Retrieves the element requested by the input key
`java.util.Map<java.lang.String,java.lang.String>` | `getData()` Retrieves values of the custom data
`void` | `remove(java.lang.String key)` Remove the input key element
`void` | `setData(java.util.Map<java.lang.String,java.lang.String> data)` Set the input map of data

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CustomData

    public CustomData()

  Constructor

### CustomData

    public CustomData(java.util.Map<java.lang.String,java.lang.String> values)

Method Detail

### getData

    public java.util.Map<java.lang.String,java.lang.String> getData()

  Retrieves values of the custom data

  Returns:
    custom data values

### addValue

    public void addValue(java.lang.String key,
                         java.lang.String value)

  Add new value to the custom Data

  Parameters:
    `key` - key of custom data
    `value` - value of custom data

### contains

    public boolean contains(java.lang.String key)

  Retrieves true if the element exists in the custom data

  Parameters:
    `key` -
  Returns:
    true if the element exists, false otherwise

### remove

    public void remove(java.lang.String key)

  Remove the input key element

  Parameters:
    `key` -

### get

    public java.lang.String get(java.lang.String key)

  Retrieves the element requested by the input key

  Parameters:
    `key` -
  Returns:
    the element requested

### setData

    public void setData(java.util.Map<java.lang.String,java.lang.String> data)

  Set the input map of data

  Parameters:
    `data` -

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD