Class PolyStringType

  • All Implemented Interfaces:
    JaxbVisitable, DebugDumpable, Serializable, Cloneable

    public class PolyStringType
    extends Object
    implements DebugDumpable, Serializable, Cloneable, 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">
         <restriction base="{}anyType">
             <element name="orig" type="{}string"/>
             <element name="norm" type="{}string" minOccurs="0"/>
             <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
    See Also:
    Serialized Form
    • 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.
        possible object is String
      • setOrig

        public void setOrig​(String value)
        Sets the value of the orig property.
        value - allowed object is String
      • getNorm

        public String getNorm()
        Gets the value of the norm property.
        possible object is String
      • setNorm

        public void setNorm​(String value)
        Sets the value of the norm property.
        value - allowed object is String
      • 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:


        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).
      • 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.
        toString in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object