Class LocalizableMessageTemplateType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageTemplateType
-
- All Implemented Interfaces:
JaxbVisitable,Serializable,Cloneable,org.jvnet.jaxb2_commons.lang.Equals,org.jvnet.jaxb2_commons.lang.HashCode
public class LocalizableMessageTemplateType extends Object implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
A template that produces a localizable message after argument expressions are evaluated into specific arguments.Java class for LocalizableMessageTemplateType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LocalizableMessageTemplateType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="keyExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> <element name="argument" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LocalizableMessageArgumentType" maxOccurs="unbounded" minOccurs="0"/> <element name="argumentExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" maxOccurs="unbounded" minOccurs="0"/> <element name="fallbackMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="fallbackMessageExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<LocalizableMessageArgumentType>argumentprotected List<ExpressionType>argumentExpressionstatic QNameCOMPLEX_TYPEstatic ItemNameF_ARGUMENTstatic ItemNameF_ARGUMENT_EXPRESSIONstatic ItemNameF_FALLBACK_MESSAGEstatic ItemNameF_FALLBACK_MESSAGE_EXPRESSIONstatic ItemNameF_KEYstatic ItemNameF_KEY_EXPRESSIONprotected StringfallbackMessageprotected ExpressionTypefallbackMessageExpressionprotected Stringkeyprotected ExpressionTypekeyExpression
-
Constructor Summary
Constructors Constructor Description LocalizableMessageTemplateType()Creates a newLocalizableMessageTemplateTypeinstance.LocalizableMessageTemplateType(LocalizableMessageTemplateType o)Creates a newLocalizableMessageTemplateTypeinstance by deeply copying a givenLocalizableMessageTemplateTypeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)LocalizableMessageTemplateTypeargument(LocalizableMessageArgumentType value)LocalizableMessageTemplateTypeargumentExpression(ExpressionType value)LocalizableMessageArgumentTypebeginArgument()ExpressionTypebeginArgumentExpression()ExpressionTypebeginFallbackMessageExpression()ExpressionTypebeginKeyExpression()LocalizableMessageTemplateTypeclone()Creates and returns a deep copy of this object.booleanequals(Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)LocalizableMessageTemplateTypefallbackMessage(String value)LocalizableMessageTemplateTypefallbackMessageExpression(ExpressionType value)List<LocalizableMessageArgumentType>getArgument()Gets the value of the argument property.List<ExpressionType>getArgumentExpression()Gets the value of the argumentExpression property.StringgetFallbackMessage()Gets the value of the fallbackMessage property.ExpressionTypegetFallbackMessageExpression()Gets the value of the fallbackMessageExpression property.StringgetKey()Gets the value of the key property.ExpressionTypegetKeyExpression()Gets the value of the keyExpression property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)LocalizableMessageTemplateTypekey(String value)LocalizableMessageTemplateTypekeyExpression(ExpressionType value)voidsetFallbackMessage(String value)Sets the value of the fallbackMessage property.voidsetFallbackMessageExpression(ExpressionType value)Sets the value of the fallbackMessageExpression property.voidsetKey(String value)Sets the value of the key property.voidsetKeyExpression(ExpressionType value)Sets the value of the keyExpression property.StringtoString()Generates a String representation of the contents of this type.
-
-
-
Field Detail
-
key
protected String key
-
keyExpression
protected ExpressionType keyExpression
-
argument
protected List<LocalizableMessageArgumentType> argument
-
argumentExpression
protected List<ExpressionType> argumentExpression
-
fallbackMessage
protected String fallbackMessage
-
fallbackMessageExpression
protected ExpressionType fallbackMessageExpression
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_KEY
public static final ItemName F_KEY
-
F_KEY_EXPRESSION
public static final ItemName F_KEY_EXPRESSION
-
F_ARGUMENT
public static final ItemName F_ARGUMENT
-
F_ARGUMENT_EXPRESSION
public static final ItemName F_ARGUMENT_EXPRESSION
-
F_FALLBACK_MESSAGE
public static final ItemName F_FALLBACK_MESSAGE
-
F_FALLBACK_MESSAGE_EXPRESSION
public static final ItemName F_FALLBACK_MESSAGE_EXPRESSION
-
-
Constructor Detail
-
LocalizableMessageTemplateType
public LocalizableMessageTemplateType()
Creates a newLocalizableMessageTemplateTypeinstance.
-
LocalizableMessageTemplateType
public LocalizableMessageTemplateType(LocalizableMessageTemplateType o)
Creates a newLocalizableMessageTemplateTypeinstance by deeply copying a givenLocalizableMessageTemplateTypeinstance.- Parameters:
o- The instance to copy.- Throws:
NullPointerException- ifoisnull.
-
-
Method Detail
-
getKey
public String getKey()
Gets the value of the key property.- Returns:
- possible object is
String
-
setKey
public void setKey(String value)
Sets the value of the key property.- Parameters:
value- allowed object isString
-
getKeyExpression
public ExpressionType getKeyExpression()
Gets the value of the keyExpression property.- Returns:
- possible object is
ExpressionType
-
setKeyExpression
public void setKeyExpression(ExpressionType value)
Sets the value of the keyExpression property.- Parameters:
value- allowed object isExpressionType
-
getArgument
public List<LocalizableMessageArgumentType> getArgument()
Gets the value of the argument property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the argument property.For example, to add a new item, do as follows:
getArgument().add(newItem);Objects of the following type(s) are allowed in the list
LocalizableMessageArgumentType
-
getArgumentExpression
public List<ExpressionType> getArgumentExpression()
Gets the value of the argumentExpression property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the argumentExpression property.For example, to add a new item, do as follows:
getArgumentExpression().add(newItem);Objects of the following type(s) are allowed in the list
ExpressionType
-
getFallbackMessage
public String getFallbackMessage()
Gets the value of the fallbackMessage property.- Returns:
- possible object is
String
-
setFallbackMessage
public void setFallbackMessage(String value)
Sets the value of the fallbackMessage property.- Parameters:
value- allowed object isString
-
getFallbackMessageExpression
public ExpressionType getFallbackMessageExpression()
Gets the value of the fallbackMessageExpression property.- Returns:
- possible object is
ExpressionType
-
setFallbackMessageExpression
public void setFallbackMessageExpression(ExpressionType value)
Sets the value of the fallbackMessageExpression property.- Parameters:
value- allowed object isExpressionType
-
toString
public String toString()
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals
-
key
public LocalizableMessageTemplateType key(String value)
-
keyExpression
public LocalizableMessageTemplateType keyExpression(ExpressionType value)
-
beginKeyExpression
public ExpressionType beginKeyExpression()
-
argument
public LocalizableMessageTemplateType argument(LocalizableMessageArgumentType value)
-
beginArgument
public LocalizableMessageArgumentType beginArgument()
-
argumentExpression
public LocalizableMessageTemplateType argumentExpression(ExpressionType value)
-
beginArgumentExpression
public ExpressionType beginArgumentExpression()
-
fallbackMessage
public LocalizableMessageTemplateType fallbackMessage(String value)
-
fallbackMessageExpression
public LocalizableMessageTemplateType fallbackMessageExpression(ExpressionType value)
-
beginFallbackMessageExpression
public ExpressionType beginFallbackMessageExpression()
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable
-
clone
public LocalizableMessageTemplateType clone()
Creates and returns a deep copy of this object.
-
-