Class SingleLocalizableMessageType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.LocalizableMessageType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.SingleLocalizableMessageType
-
- All Implemented Interfaces:
JaxbVisitable,Serializable,Cloneable,org.jvnet.jaxb2_commons.lang.Equals,org.jvnet.jaxb2_commons.lang.HashCode
public class SingleLocalizableMessageType extends LocalizableMessageType implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
A message that is to be localized into specified language.Java class for SingleLocalizableMessageType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SingleLocalizableMessageType"> <complexContent> <extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LocalizableMessageType"> <sequence> <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="argument" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LocalizableMessageArgumentType" maxOccurs="unbounded" minOccurs="0"/> <element name="fallbackLocalizableMessage" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LocalizableMessageType" minOccurs="0"/> <element name="fallbackMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<LocalizableMessageArgumentType>argumentstatic QNameCOMPLEX_TYPEstatic ItemNameF_ARGUMENTstatic ItemNameF_FALLBACK_LOCALIZABLE_MESSAGEstatic ItemNameF_FALLBACK_MESSAGEstatic ItemNameF_KEYprotected LocalizableMessageTypefallbackLocalizableMessageprotected StringfallbackMessageprotected Stringkey
-
Constructor Summary
Constructors Constructor Description SingleLocalizableMessageType()Creates a newSingleLocalizableMessageTypeinstance.SingleLocalizableMessageType(SingleLocalizableMessageType o)Creates a newSingleLocalizableMessageTypeinstance by deeply copying a givenSingleLocalizableMessageTypeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)SingleLocalizableMessageTypeargument(LocalizableMessageArgumentType value)LocalizableMessageArgumentTypebeginArgument()SingleLocalizableMessageTypeclone()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)SingleLocalizableMessageTypefallbackLocalizableMessage(LocalizableMessageType value)SingleLocalizableMessageTypefallbackMessage(String value)List<LocalizableMessageArgumentType>getArgument()Gets the value of the argument property.LocalizableMessageTypegetFallbackLocalizableMessage()Gets the value of the fallbackLocalizableMessage property.StringgetFallbackMessage()Gets the value of the fallbackMessage property.StringgetKey()Gets the value of the key property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)SingleLocalizableMessageTypekey(String value)voidsetFallbackLocalizableMessage(LocalizableMessageType value)Sets the value of the fallbackLocalizableMessage property.voidsetFallbackMessage(String value)Sets the value of the fallbackMessage property.voidsetKey(String value)Sets the value of the key property.StringtoString()Generates a String representation of the contents of this type.
-
-
-
Field Detail
-
key
protected String key
-
argument
protected List<LocalizableMessageArgumentType> argument
-
fallbackLocalizableMessage
protected LocalizableMessageType fallbackLocalizableMessage
-
fallbackMessage
protected String fallbackMessage
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_KEY
public static final ItemName F_KEY
-
F_ARGUMENT
public static final ItemName F_ARGUMENT
-
F_FALLBACK_LOCALIZABLE_MESSAGE
public static final ItemName F_FALLBACK_LOCALIZABLE_MESSAGE
-
F_FALLBACK_MESSAGE
public static final ItemName F_FALLBACK_MESSAGE
-
-
Constructor Detail
-
SingleLocalizableMessageType
public SingleLocalizableMessageType()
Creates a newSingleLocalizableMessageTypeinstance.
-
SingleLocalizableMessageType
public SingleLocalizableMessageType(SingleLocalizableMessageType o)
Creates a newSingleLocalizableMessageTypeinstance by deeply copying a givenSingleLocalizableMessageTypeinstance.- 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
-
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
-
getFallbackLocalizableMessage
public LocalizableMessageType getFallbackLocalizableMessage()
Gets the value of the fallbackLocalizableMessage property.- Returns:
- possible object is
LocalizableMessageType
-
setFallbackLocalizableMessage
public void setFallbackLocalizableMessage(LocalizableMessageType value)
Sets the value of the fallbackLocalizableMessage property.- Parameters:
value- allowed object isLocalizableMessageType
-
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
-
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- Overrides:
toStringin classLocalizableMessageType
-
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- Overrides:
hashCodein classLocalizableMessageType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLocalizableMessageType
-
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- Overrides:
equalsin classLocalizableMessageType
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classLocalizableMessageType
-
key
public SingleLocalizableMessageType key(String value)
-
argument
public SingleLocalizableMessageType argument(LocalizableMessageArgumentType value)
-
beginArgument
public LocalizableMessageArgumentType beginArgument()
-
fallbackLocalizableMessage
public SingleLocalizableMessageType fallbackLocalizableMessage(LocalizableMessageType value)
-
fallbackMessage
public SingleLocalizableMessageType fallbackMessage(String value)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable- Overrides:
acceptin classLocalizableMessageType
-
clone
public SingleLocalizableMessageType clone()
Creates and returns a deep copy of this object.- Overrides:
clonein classLocalizableMessageType- Returns:
- A deep copy of this object.
-
-