@TraceDisabled public class Property extends java.lang.Object implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
FINAL |
static int |
FORMAT_FLAG |
static int |
GLOBAL_FLAG |
static java.lang.String |
LABEL_SOURCE_ID
Name of the property which holds the id of original control that labels are for.
|
static int |
NONCONDITIONAL |
static int |
RENDERID |
static int |
SYSTEM |
static int |
TRANSLATE_FLAG |
Constructor and Description |
---|
Property(Property prop)
Constructor taking the property object
|
Property(java.lang.String name)
Constructor taking the property/value
|
Property(java.lang.String name,
java.lang.String value)
Constructor taking the property/value
|
Modifier and Type | Method and Description |
---|---|
void |
clearFlag(long index)
Clears the bit(s) indicated by index to false
|
void |
clearFlags()
Sets flags back to 0 to clear all set flags
|
java.lang.Object |
clone() |
java.lang.String |
getDefaultValue() |
boolean |
getFlag(long index)
Returns boolean whether the flag set at index is set
|
long |
getFlags() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getParameterList() |
java.lang.String |
getString(java.lang.String property)
Returns the string value for the property, if present
|
java.lang.String |
getTranslatable(WebClientSession sc,
java.lang.String controlId,
java.lang.String property)
Returns the proper translated string for the given property.
|
java.lang.String |
getTranslatable(WebClientSession sc,
java.lang.String controlId,
java.lang.String property,
java.lang.String defaultValue)
Returns the proper translated string for the given property.
|
java.lang.String |
getValue() |
java.lang.String |
getValue(java.util.List<java.lang.String> paramValues) |
boolean |
isParameterized() |
void |
setDetaultValue(java.lang.String val) |
void |
setFlag(long index)
Sets the bit(s) indicated by index to true
|
void |
setFlagFromString(java.lang.String flag)
Set the corresponding flag
|
void |
setFlags(long flags) |
void |
setFlagsFromString(java.lang.String flags)
Deprecated.
FIREFOX - flags no longer set as a lot, see BaseDescriptor.loadProperties(Element)
|
void |
setName(java.lang.String name)
Sets the property value
|
void |
setRegexPattern(java.lang.String regex)
Sets a regular expression to be used in with parametrized properties
|
void |
setValue(java.lang.String value)
Sets the property value
|
java.lang.String |
toString() |
public static final int TRANSLATE_FLAG
public static final int GLOBAL_FLAG
public static final int FORMAT_FLAG
public static final int FINAL
public static final int SYSTEM
public static final int NONCONDITIONAL
public static final int RENDERID
public static final java.lang.String LABEL_SOURCE_ID
public Property(java.lang.String name)
property
- Property name to be used at the key in the hashmapvalue
- Value to be storedpublic Property(java.lang.String name, java.lang.String value)
property
- Property name to be used at the key in the hashmapvalue
- Value to be storedpublic Property(Property prop)
prop
- Property to be copiedpublic void setFlag(long index)
index
- bit(s) to be setpublic void setFlags(long flags)
public void setValue(java.lang.String value)
value
- object to be set as the valuepublic java.lang.String getValue()
public void setDetaultValue(java.lang.String val)
public java.lang.String getDefaultValue()
public void setName(java.lang.String name)
value
- object to be set as the valuepublic java.lang.String getName()
public void clearFlags()
public void clearFlag(long index)
index
- bit(s) to be setpublic boolean getFlag(long index)
index
- bit(s) to get value forpublic long getFlags()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setFlagsFromString(java.lang.String flags)
flags
- String containing zero or more comma delimited flagspublic void setFlagFromString(java.lang.String flag)
flag
- String representation of one flag to be setpublic boolean isParameterized()
public java.lang.String getValue(java.util.List<java.lang.String> paramValues)
public java.util.List<java.lang.String> getParameterList()
public void setRegexPattern(java.lang.String regex)
regex
- the regular expression to be used instead of the defaultpublic java.lang.String getTranslatable(WebClientSession sc, java.lang.String controlId, java.lang.String property)
sc
- The current session contextproperty
- Property or attribute to get the string forpublic java.lang.String getTranslatable(WebClientSession sc, java.lang.String controlId, java.lang.String property, java.lang.String defaultValue)
sc
- The current session contextproperty
- Property or attribute to get the string fordefaultValue
- default value to use if string not foundpublic java.lang.String getString(java.lang.String property)
property
- Property or attribute to get the string forpublic java.lang.String toString()
toString
in class java.lang.Object