org.gedcomx.rt.json
Interface HasJsonKey


public interface HasJsonKey

Interface for objects that support access by a JSON map instead of access by a list when a list of the objects are supplied.

Author:
Ryan Heaton

Method Summary
 String getJsonKey()
          The JSON key in the map for this object.
 boolean isHasUniqueKey()
          Whether the json-keyed value is supposed to have a unique key in the list.
 void setJsonKey(String jsonKey)
          The JSON key in the map for this object.
 

Method Detail

isHasUniqueKey

boolean isHasUniqueKey()
Whether the json-keyed value is supposed to have a unique key in the list.

Returns:
Whether the json-keyed value is supposed to have a unique key in the list.

getJsonKey

String getJsonKey()
The JSON key in the map for this object.

Returns:
The key in the map.

setJsonKey

void setJsonKey(String jsonKey)
The JSON key in the map for this object.

Parameters:
jsonKey - The key in the map.


Copyright © 2016. All rights reserved.