Class PolyStringType
- java.lang.Object
-
- com.evolveum.prism.xml.ns._public.types_3.PolyStringType
-
- All Implemented Interfaces:
PlainStructured
,PlainStructured.WithoutStrategy
,JaxbVisitable
,DebugDumpable
,Serializable
,Cloneable
public class PolyStringType extends Object implements DebugDumpable, PlainStructured.WithoutStrategy, JaxbVisitable
Polymorphic string. String that may have more than one representation at the same time. The primary representation is the original version that is composed of the full Unicode character set. The other versions may be normalized to trim it, normalize character case, normalize spaces, remove national characters or even transliterate the string. WARNING: THIS IS NOT GENERATED CODE Although it was originally generated, it has local modifications.Java class for PolyStringType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PolyStringType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="orig" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="norm" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured
PlainStructured.WithoutStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>
any
static QName
COMPLEX_TYPE
protected PolyStringLangType
lang
protected String
norm
protected String
orig
protected PolyStringTranslationType
translation
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description PolyStringType()
PolyStringType(PolyString polyString)
PolyStringType(String orig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
PolyStringType
clone()
String
debugDump(int indent)
boolean
equals(Object obj)
static PolyStringType
fromOrig(String name)
List<Object>
getAny()
Gets the value of the any property.PolyStringLangType
getLang()
String
getNorm()
Gets the value of the norm property.String
getOrig()
Gets the value of the orig property.PolyStringTranslationType
getTranslation()
int
hashCode()
boolean
isEmpty()
boolean
isSimple()
Returns true if the PolyString form contains only simple string.PolyStringType
plus(PolyStringType operand)
PolyStringType
plus(String operand)
Plus method for ease of use of PolyStrings in groovy (mapped from + operator).void
setLang(PolyStringLangType lang)
void
setNorm(String value)
Sets the value of the norm property.void
setOrig(String value)
Sets the value of the orig property.void
setTranslation(PolyStringTranslationType translation)
PolyString
toPolyString()
String
toString()
toString is tweaked to provide convenience and compatibility with normal strings.-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured.WithoutStrategy
equals, hashCode
-
-
-
-
Field Detail
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
orig
protected String orig
-
norm
protected String norm
-
translation
protected PolyStringTranslationType translation
-
lang
protected PolyStringLangType lang
-
-
Constructor Detail
-
PolyStringType
public PolyStringType()
-
PolyStringType
public PolyStringType(String orig)
-
PolyStringType
public PolyStringType(PolyString polyString)
-
-
Method Detail
-
getOrig
public String getOrig()
Gets the value of the orig property.- Returns:
- possible object is
String
-
setOrig
public void setOrig(String value)
Sets the value of the orig property.- Parameters:
value
- allowed object isString
-
getNorm
public String getNorm()
Gets the value of the norm property.- Returns:
- possible object is
String
-
setNorm
public void setNorm(String value)
Sets the value of the norm property.- Parameters:
value
- allowed object isString
-
getTranslation
public PolyStringTranslationType getTranslation()
-
setTranslation
public void setTranslation(PolyStringTranslationType translation)
-
getLang
public PolyStringLangType getLang()
-
setLang
public void setLang(PolyStringLangType lang)
-
getAny
public List<Object> getAny()
Gets the value of the any 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 any property.For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list
Object
-
isEmpty
public boolean isEmpty()
-
isSimple
public boolean isSimple()
Returns true if the PolyString form contains only simple string. I.e. returns true if the polystring can be serialized in a simplified form of a single string. Returns true in case that there are language mutations, translation, etc.
-
plus
public PolyStringType plus(String operand)
Plus method for ease of use of PolyStrings in groovy (mapped from + operator).
-
plus
public PolyStringType plus(PolyStringType operand)
-
toPolyString
public PolyString toPolyString()
-
toString
public String toString()
toString is tweaked to provide convenience and compatibility with normal strings. If PolyStringType is used in expressions that target the entire PolyString, the result will be the "orig" value of PolyString. WARNING: This method was NOT generated. If the code is re-generated then it must be manually re-introduced to the code.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
clone
public PolyStringType clone()
- Specified by:
clone
in interfacePlainStructured
- Overrides:
clone
in classObject
-
fromOrig
public static PolyStringType fromOrig(String name)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
accept
in interfaceJaxbVisitable
-
-