public class PropertyValue
extends java.lang.Object
Constructor and Description |
---|
PropertyValue(boolean value)
A convenient way of creating boolean values.
|
PropertyValue(char value)
A convenient way of creating character values.
|
PropertyValue(int value)
Create a new property vlaue that is an int.
|
PropertyValue(int value,
int min,
int max)
Create a new property vlaue that is an int.
|
PropertyValue(PropertyValue src,
java.lang.String value)
Creates a new object giving it a value.
|
PropertyValue(java.lang.String value)
Creates a new object giving it a value.
|
PropertyValue(java.lang.String value,
boolean allowedAreFlags,
java.lang.String[] allowedValues)
Create a new object that has a specific set of allowed string values.
|
PropertyValue(java.lang.String value,
java.lang.String[] allowedValues)
Create a new object that has a specific set of allowed string values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
boolValue()
Gets a boolean value.
|
char |
charValue() |
java.lang.String[] |
getAllowedValues()
Allowed values for a String enum value.
|
int |
getMax()
The max value allowed for an int value.
|
int |
getMin()
The min value allowed for an int value.
|
int |
intValue()
Gets an integer value.
|
boolean |
isAllowedAreFlags()
Allowed values are flags, several can be set as ; delimited.
|
boolean |
isValid(java.lang.String value)
Return if the passed in value is a valid setting for this property.
|
java.lang.String |
stringValue()
Gets a string value.
|
public PropertyValue(PropertyValue src, java.lang.String value)
public PropertyValue(java.lang.String value)
public PropertyValue(java.lang.String value, java.lang.String[] allowedValues)
value
- The default value for this property.allowedValues
- The allowed values for this property.public PropertyValue(java.lang.String value, boolean allowedAreFlags, java.lang.String[] allowedValues)
value
- The default value for this property.allowedAreFlags
- true if the allowed values are flags so multipel can be set.allowedValues
- The allowed values for this property.public PropertyValue(int value)
value
- The default value.public PropertyValue(int value, int min, int max)
value
- The default value.min
- The minimum this property can be set to.max
- The maximum this property can be set to.public PropertyValue(char value)
public PropertyValue(boolean value)
public boolean isAllowedAreFlags()
public java.lang.String[] getAllowedValues()
public int getMin()
public int getMax()
public java.lang.String stringValue()
public int intValue()
public char charValue()
public boolean boolValue()
public boolean isValid(java.lang.String value)
value
- The proposed value.Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software