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>
argument
static QName
COMPLEX_TYPE
static ItemName
F_ARGUMENT
static ItemName
F_FALLBACK_LOCALIZABLE_MESSAGE
static ItemName
F_FALLBACK_MESSAGE
static ItemName
F_KEY
protected LocalizableMessageType
fallbackLocalizableMessage
protected String
fallbackMessage
protected String
key
-
Constructor Summary
Constructors Constructor Description SingleLocalizableMessageType()
Creates a newSingleLocalizableMessageType
instance.SingleLocalizableMessageType(SingleLocalizableMessageType o)
Creates a newSingleLocalizableMessageType
instance by deeply copying a givenSingleLocalizableMessageType
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
SingleLocalizableMessageType
argument(LocalizableMessageArgumentType value)
LocalizableMessageArgumentType
beginArgument()
SingleLocalizableMessageType
clone()
Creates and returns a deep copy of this object.boolean
equals(Object object)
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)
SingleLocalizableMessageType
fallbackLocalizableMessage(LocalizableMessageType value)
SingleLocalizableMessageType
fallbackMessage(String value)
List<LocalizableMessageArgumentType>
getArgument()
Gets the value of the argument property.LocalizableMessageType
getFallbackLocalizableMessage()
Gets the value of the fallbackLocalizableMessage property.String
getFallbackMessage()
Gets the value of the fallbackMessage property.String
getKey()
Gets the value of the key property.int
hashCode()
int
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
SingleLocalizableMessageType
key(String value)
void
setFallbackLocalizableMessage(LocalizableMessageType value)
Sets the value of the fallbackLocalizableMessage property.void
setFallbackMessage(String value)
Sets the value of the fallbackMessage property.void
setKey(String value)
Sets the value of the key property.String
toString()
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 newSingleLocalizableMessageType
instance.
-
SingleLocalizableMessageType
public SingleLocalizableMessageType(SingleLocalizableMessageType o)
Creates a newSingleLocalizableMessageType
instance by deeply copying a givenSingleLocalizableMessageType
instance.- Parameters:
o
- The instance to copy.- Throws:
NullPointerException
- ifo
isnull
.
-
-
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
set
method 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:
toString
in classLocalizableMessageType
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
- Specified by:
hashCode
in interfaceorg.jvnet.jaxb2_commons.lang.HashCode
- Overrides:
hashCode
in classLocalizableMessageType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
equals
in interfaceorg.jvnet.jaxb2_commons.lang.Equals
- Overrides:
equals
in classLocalizableMessageType
-
equals
public boolean equals(Object object)
- Overrides:
equals
in 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:
accept
in interfaceJaxbVisitable
- Overrides:
accept
in classLocalizableMessageType
-
clone
public SingleLocalizableMessageType clone()
Creates and returns a deep copy of this object.- Overrides:
clone
in classLocalizableMessageType
- Returns:
- A deep copy of this object.
-
-