public class CmsJspElementSettingValueWrapper extends java.util.AbstractCollection<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
protected CmsObject |
m_cms
The wrapped OpenCms user context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
CmsObject |
getCmsObject()
Returns the current cms context.
|
java.util.Map<java.lang.Object,java.lang.Boolean> |
getContains()
Returns a lazy initialized Map that provides Booleans which
indicate if if the wrapped values String representation contains a specific String.
|
boolean |
getExists()
Returns if the setting has been configured.
|
boolean |
getIsEmpty()
Returns if the setting value is null or empty.
|
boolean |
getIsEmptyOrWhitespaceOnly()
Returns if the setting value is null or white space only.
|
java.util.Map<java.lang.Object,java.lang.Boolean> |
getIsEqual()
Returns a lazy initialized Map that provides Booleans which
indicate if an Object is equal to the wrapped object.
|
boolean |
getIsSet()
Returns
true in case the wrapped value exists and is not empty or whitespace only. |
boolean |
getIsSetNotNone()
Returns
true in case the wrapped value exists, is not empty or whitespace only
and is also not equal to the String 'none'. |
java.lang.Long |
getMathCeil()
Calculates the next largest integer from the wrapped value.
|
java.lang.Long |
getMathFloor()
Calculates the next smallest integer from the wrapped value.
|
java.lang.Long |
getMathRound()
Calculates the next integer from the wrapped value by rounding.
|
java.lang.Object |
getObjectValue()
Returns the raw instance of the wrapped value.
|
java.lang.String |
getStringValue()
Deprecated.
use
getToString() instead |
java.lang.String |
getStripHtml()
Assumes the wrapped value is a String and strips all HTML markup from this String.
|
boolean |
getToBoolean()
Converts the wrapped value to a boolean.
|
java.util.Date |
getToDate()
Converts the wrapped value to a date.
|
java.lang.Double |
getToDouble()
Parses the wrapped value to a Double precision float.
|
java.lang.Double |
getToFloat()
Parses the wrapped value to a Double precision float.
|
CmsJspImageBean |
getToImage()
Returns a scaled image bean from the wrapped value.
|
CmsJspInstanceDateBean |
getToInstanceDate()
Converts a date to an instance date bean.
|
java.lang.Long |
getToInteger()
Parses the wrapped value to a Long integer.
|
java.lang.String |
getToLink()
Returns the substituted link to the wrapped value.
|
java.lang.Long |
getToLong()
Parses the wrapped value to a Long integer.
|
CmsJspResourceWrapper |
getToResource()
Converts a date to an instance date bean.
|
java.lang.String |
getToString()
Returns the wrapped value as a String.
|
java.util.Map<java.lang.Object,java.lang.String> |
getTrimToSize()
Returns a lazy initialized map that provides trimmed to size strings of the wrapped object string value.
|
java.lang.String |
getValue()
Deprecated.
use
getObjectValue() instead |
int |
hashCode()
The hash code is based in the String value of the element setting.
|
boolean |
isEmpty()
Supports the use of the
empty operator in the JSP EL by implementing the Collection interface. |
java.util.Iterator<java.lang.String> |
iterator()
Supports the use of the
empty operator in the JSP EL by implementing the Collection interface. |
int |
size()
Supports the use of the
empty operator in the JSP EL by implementing the Collection interface. |
protected static java.lang.String |
substituteLink(CmsObject cms,
java.lang.String target)
Returns the substituted link to the given target.
|
java.lang.Double |
toDouble(java.lang.Double def)
Parses the wrapped value to a Double precision float, returning the default in case the number can not be parsed.
|
java.lang.Double |
toFloat(java.lang.Double def)
Parses the wrapped value to a Double precision float, returning the default in case the number can not be parsed.
|
java.lang.Long |
toInteger(java.lang.Long def)
Parses the wrapped value to a Long integer, returning the default in case the number can not be parsed.
|
java.lang.Long |
toLong(java.lang.Long def)
Parses the wrapped value to a Long integer, returning the default in case the number can not be parsed.
|
java.lang.String |
toString()
Returns the string value.
|
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArraypublic CmsObject getCmsObject()
A_CmsJspValueWrapper.getCmsObject()public boolean getExists()
true if the setting has been configuredpublic boolean getIsEmpty()
true if the setting value is null or emptypublic boolean getIsEmptyOrWhitespaceOnly()
true if the setting value is null or white space onlypublic java.lang.Object getObjectValue()
A_CmsJspValueWrapper.getObjectValue()@Deprecated public java.lang.String getValue()
getObjectValue() instead
This may return null.
public int hashCode()
hashCode in interface java.util.Collection<java.lang.String>A_CmsJspValueWrapper.hashCode()public java.lang.String toString()
This will always be at least an empty String "", never null.
toString in class java.util.AbstractCollection<java.lang.String>protected static java.lang.String substituteLink(CmsObject cms, java.lang.String target)
cms - the cms contexttarget - the link targetpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<java.lang.String>equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.util.Map<java.lang.Object,java.lang.Boolean> getContains()
The Object parameter is transformed to it's String representation to perform this check.
public java.util.Map<java.lang.Object,java.lang.Boolean> getIsEqual()
public boolean getIsSet()
true in case the wrapped value exists and is not empty or whitespace only.true in case the wrapped value exists and is not empty or whitespace onlypublic boolean getIsSetNotNone()
true in case the wrapped value exists, is not empty or whitespace only
and is also not equal to the String 'none'.true in case the wrapped value exists, is not empty or whitespace only
and is also not equal to the String 'none'public java.lang.Long getMathCeil()
Note that the result is an Object of type Long,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
public java.lang.Long getMathFloor()
Note that the result is an Object of type Long,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
public java.lang.Long getMathRound()
Note that the result is an Object of type Long,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
@Deprecated public java.lang.String getStringValue()
getToString() instead
This will return the empty String "" when getExists() returns false
.
public java.lang.String getStripHtml()
public boolean getToBoolean()
public java.util.Date getToDate()
CmsJspElFunctions.convertDate(Object)public java.lang.Double getToDouble()
Note that the result is an Object of type Double,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
public java.lang.Double getToFloat()
Note that the result is an Object of type Double,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
public CmsJspImageBean getToImage()
In case the value does not point to an image resource, null is returned.
public CmsJspInstanceDateBean getToInstanceDate()
public java.lang.Long getToInteger()
Note that the result is an Object of type Long,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
getToLong()public java.lang.String getToLink()
In case no link can be substituted from the wrapped value, an empty String "" is returned.
public java.lang.Long getToLong()
Note that the result is an Object of type Long,
so in case the wrapped value can not be converted to a number, null is returned.
This means you can check for an empty result in the EL.
getToInteger()public CmsJspResourceWrapper getToResource()
public java.lang.String getToString()
This will always be at least an empty String "", never null.
public java.util.Map<java.lang.Object,java.lang.String> getTrimToSize()
public boolean isEmpty()
empty operator in the JSP EL by implementing the Collection interface.isEmpty in interface java.util.Collection<java.lang.String>isEmpty in class java.util.AbstractCollection<java.lang.String>getIsEmptyOrWhitespaceOnly() which is the inverse of getIsSet().AbstractCollection.isEmpty(),
getIsEmptyOrWhitespaceOnly(),
getIsSet()public java.util.Iterator<java.lang.String> iterator()
empty operator in the JSP EL by implementing the Collection interface.iterator in interface java.lang.Iterable<java.lang.String>iterator in interface java.util.Collection<java.lang.String>iterator in class java.util.AbstractCollection<java.lang.String>isEmpty() is true,
otherwise an Iterator that will return the String value of this wrapper exactly once.AbstractCollection.size()public int size()
empty operator in the JSP EL by implementing the Collection interface.size in interface java.util.Collection<java.lang.String>size in class java.util.AbstractCollection<java.lang.String>AbstractCollection.size()public java.lang.Double toDouble(java.lang.Double def)
def - the default in case the wrapped value can not be converted to a numbertoFloat(Double)public java.lang.Double toFloat(java.lang.Double def)
def - the default in case the wrapped value can not be converted to a numbertoDouble(Double)public java.lang.Long toInteger(java.lang.Long def)
def - the default in case the wrapped value can not be converted to a numbertoLong(Long)public java.lang.Long toLong(java.lang.Long def)
def - the default in case the wrapped value can not be converted to a numbertoInteger(Long)