org.apache.openjpa.lib.conf
Class StringListValue

java.lang.Object
  extended by org.apache.openjpa.lib.conf.Value
      extended by org.apache.openjpa.lib.conf.StringListValue
All Implemented Interfaces:
Cloneable

public class StringListValue
extends Value

A comma-separated list of string values.

Author:
Abe White

Field Summary
static String[] EMPTY
           
 
Constructor Summary
StringListValue(String prop)
           
 
Method Summary
 String[] get()
          The internal value.
protected  List getAliasList()
           
protected  String getInternalString()
          Return the internal string form of this value.
 Class getValueType()
          Returns the type of the property that this Value represents.
 void set(String[] values)
          The internal value.
protected  void setInternalObject(Object obj)
          Set this value from an object.
protected  void setInternalString(String val)
          Set this value from the given string.
 String unalias(String str)
          Unalias the value list.
 
Methods inherited from class org.apache.openjpa.lib.conf.Value
alias, alias, clone, equals, getAliases, getDefault, getInstantiatingGetter, getListener, getLoadKey, getProperty, getScope, getString, hashCode, isAliasListComprehensive, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setInstantiatingGetter, setListener, setLoadKey, setObject, setProperty, setScope, setString, unalias, valueChanged
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final String[] EMPTY
Constructor Detail

StringListValue

public StringListValue(String prop)
Method Detail

set

public void set(String[] values)
The internal value.


get

public String[] get()
The internal value.


getValueType

public Class getValueType()
Description copied from class: Value
Returns the type of the property that this Value represents.

Specified by:
getValueType in class Value

unalias

public String unalias(String str)
Unalias the value list. This method defers to super.unalias() UNLESS the string passed is a list of values for a property that has aliases.

Overrides:
unalias in class Value

getInternalString

protected String getInternalString()
Description copied from class: Value
Return the internal string form of this value.

Specified by:
getInternalString in class Value

setInternalString

protected void setInternalString(String val)
Description copied from class: Value
Set this value from the given string.

Specified by:
setInternalString in class Value

setInternalObject

protected void setInternalObject(Object obj)
Description copied from class: Value
Set this value from an object.

Specified by:
setInternalObject in class Value

getAliasList

protected List getAliasList()


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