public class PropertySource<T> extends Object implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_NULL_VALID |
static int |
DEFAULT_PRIORITY |
static int |
HIGHEST_PRIORITY |
static int |
LOWEST_PRIORITY |
static boolean |
NULL_INVALID |
static boolean |
NULL_VALID
Convenience nullValid fields.
|
static int |
PRIORITY_1
Convenience priority fields.
|
static int |
PRIORITY_2 |
static int |
PRIORITY_3 |
static int |
PRIORITY_4 |
static int |
PRIORITY_5 |
static int |
PRIORITY_6 |
static int |
PRIORITY_7 |
| Constructor and Description |
|---|
PropertySource(PropertySource<T> source)
Deep Copy Constructor
|
PropertySource(String name) |
PropertySource(String name,
boolean nullValid) |
PropertySource(String name,
int priority) |
PropertySource(String name,
int priority,
boolean nullValid) |
PropertySource(String name,
int priority,
boolean nullValid,
PropertyConverter converter) |
PropertySource(String name,
int priority,
PropertyConverter converter) |
PropertySource(String name,
PropertyConverter converter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PropertySourceChangeListener<T> listener) |
void |
addVetoableListener(VetoablePropertySourceChangeListener<T> listener) |
Object |
clone() |
PropertyConverter |
getConverter() |
String |
getName() |
boolean |
getPrintable() |
int |
getPriority() |
boolean |
getTrimStrings() |
HashMap<String,Object> |
getUserDataMap() |
T |
getValue() |
void |
initialize()
Used for initializing the value of sources.
|
boolean |
isNullValid() |
boolean |
isSet() |
void |
removeListener(PropertySourceChangeListener<T> listener) |
void |
removeVetoableListener(VetoablePropertySourceChangeListener<T> listener) |
void |
setObjectValue(Object value) |
void |
setPrintable(boolean printable) |
void |
setPriority(int priority) |
void |
setTrimStrings(boolean trimStrings) |
void |
setUserDataMap(HashMap<String,Object> map) |
void |
setValue(T value) |
String |
toString() |
public static final int PRIORITY_1
public static final int PRIORITY_2
public static final int PRIORITY_3
public static final int PRIORITY_4
public static final int PRIORITY_5
public static final int PRIORITY_6
public static final int PRIORITY_7
public static final int HIGHEST_PRIORITY
public static final int LOWEST_PRIORITY
public static final int DEFAULT_PRIORITY
public static final boolean NULL_VALID
public static final boolean NULL_INVALID
public static boolean DEFAULT_NULL_VALID
public PropertySource(PropertySource<T> source)
source - PropertySource to be copied.public PropertySource(String name)
public PropertySource(String name, int priority)
public PropertySource(String name, boolean nullValid)
public PropertySource(String name, PropertyConverter converter)
public PropertySource(String name, int priority, boolean nullValid)
public PropertySource(String name, int priority, PropertyConverter converter)
public PropertySource(String name, int priority, boolean nullValid, PropertyConverter converter)
public String getName()
public int getPriority()
public T getValue()
public boolean isSet()
public boolean isNullValid()
public void setTrimStrings(boolean trimStrings)
public boolean getTrimStrings()
public void setPrintable(boolean printable)
public boolean getPrintable()
public PropertyConverter getConverter()
public void addListener(PropertySourceChangeListener<T> listener)
public void removeListener(PropertySourceChangeListener<T> listener)
public void addVetoableListener(VetoablePropertySourceChangeListener<T> listener)
public void removeVetoableListener(VetoablePropertySourceChangeListener<T> listener)
public void initialize()
throws PropertyVetoException,
PropertyConversionException
PropertyVetoException - on errorPropertyConversionException - on errorpublic void setValue(T value) throws PropertyVetoException
PropertyVetoExceptionpublic void setPriority(int priority)
throws PropertyVetoException
PropertyVetoExceptionpublic void setObjectValue(Object value) throws PropertyConversionException, PropertyVetoException
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright 2004-2019 Solace Corporation. All rights reserved.