org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.util
Class EntityParsingUtil

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.util.EntityParsingUtil

public class EntityParsingUtil
extends Object

Author:
Spyros Boutsis, NKUA

Constructor Summary
EntityParsingUtil()
           
 
Method Summary
static String arrayOfValuesToAttrValue(List<String> array)
          Converts an array of string values to a string that represents a list of attributes (' [ a, b, c, ...
static List<String> attrValueToArrayOfValues(String attrValue)
          Converts a string attribute that represents an array of values (' [ a, b, ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityParsingUtil

public EntityParsingUtil()
Method Detail

attrValueToArrayOfValues

public static List<String> attrValueToArrayOfValues(String attrValue)
Converts a string attribute that represents an array of values (' [ a, b, ... ] ') to a list containing those attributes. If the given attribute is not a list, the returned list contains only one element, which is the given attribute itself.

Parameters:
attrValue - the attribute to convert to a list
Returns:
the list of values that the given attribute contains

arrayOfValuesToAttrValue

public static String arrayOfValuesToAttrValue(List<String> array)
Converts an array of string values to a string that represents a list of attributes (' [ a, b, c, ... ] ').

Parameters:
array - the array of string values to convert to a list
Returns:
the list of attributes


Copyright © 2013. All Rights Reserved.