Class LocalizedText
- java.lang.Object
-
- org.somda.sdc.biceps.model.participant.LocalizedText
-
- All Implemented Interfaces:
Cloneable,org.jvnet.jaxb2_commons.lang.CopyTo2,org.jvnet.jaxb2_commons.lang.ToString2
public class LocalizedText extends Object implements Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2
LocalizedText is a bundled ELEMENT to reference texts in different languages or to provide a text in a specific language. The goal of text references is to shrink the overall size of the MDIB by only providing a single reference to a text file that translates a text into multiple languages instead of flooding the MDIB with all translated texts. Referenced texts can be requested by the LOCALIZATION SERVICE. If no LOCALIZATION SERVICE exist, the application can make use of LocalizedText to represent a text in a single language. __R5047: If ./@Lang and ./@Ref are present, then the text SHALL be only available in the language specified by ./@Lang.__ __R5048: If ./@Lang is present and ./@Ref is not present, then ./@Lang SHALL specify the language of the LocalizedText's content. The Text is not available through the LOCALIZATION SERVICE.__ __R5049: If ./@Lang is not present and ./@Ref is present, then the text SHALL be available through the LOCALIZATION SERVICE.__ __R5050: If ./@Lang and ./@Ref are not present, then the language of the LocalizedText's content is unknown. The text SHALL NOT be available through the LOCALIZATION SERVICE.__Java class for LocalizedText complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LocalizedText"> <simpleContent> <extension base="<http://standards.ieee.org/downloads/11073/11073-10207-2017/participant>LocalizedTextContent"> <attribute name="Ref" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}LocalizedTextRef" /> <attribute name="Lang" type="{http://www.w3.org/2001/XMLSchema}language" /> <attribute name="Version" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}ReferencedVersion" /> <attribute name="TextWidth" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}LocalizedTextWidth" /> </extension> </simpleContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringlangprotected Stringrefprotected LocalizedTextWidthtextWidthprotected Stringvalueprotected BigIntegerversion
-
Constructor Summary
Constructors Constructor Description LocalizedText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)Objectclone()ObjectcopyTo(Object target)ObjectcopyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)ObjectcreateNewInstance()booleanequals(Object object)StringgetLang()Gets the value of the lang property.StringgetRef()Gets the value of the ref property.LocalizedTextWidthgetTextWidth()Gets the value of the textWidth property.StringgetValue()Content restriction for pm:LocalizedText ELEMENTs.BigIntegergetVersion()Gets the value of the version property.inthashCode()voidsetLang(String value)Sets the value of the lang property.voidsetRef(String value)Sets the value of the ref property.voidsetTextWidth(LocalizedTextWidth value)Sets the value of the textWidth property.voidsetValue(String value)Sets the value of the value property.voidsetVersion(BigInteger value)Sets the value of the version property.StringtoString()
-
-
-
Field Detail
-
value
protected String value
-
ref
protected String ref
-
lang
protected String lang
-
version
protected BigInteger version
-
textWidth
protected LocalizedTextWidth textWidth
-
-
Method Detail
-
getValue
public String getValue()
Content restriction for pm:LocalizedText ELEMENTs.- Returns:
- possible object is
String
-
setValue
public void setValue(String value)
Sets the value of the value property.- Parameters:
value- allowed object isString
-
getRef
public String getRef()
Gets the value of the ref property.- Returns:
- possible object is
String
-
setRef
public void setRef(String value)
Sets the value of the ref property.- Parameters:
value- allowed object isString
-
getLang
public String getLang()
Gets the value of the lang property.- Returns:
- possible object is
String
-
setLang
public void setLang(String value)
Sets the value of the lang property.- Parameters:
value- allowed object isString
-
getVersion
public BigInteger getVersion()
Gets the value of the version property.- Returns:
- possible object is
BigInteger
-
setVersion
public void setVersion(BigInteger value)
Sets the value of the version property.- Parameters:
value- allowed object isBigInteger
-
getTextWidth
public LocalizedTextWidth getTextWidth()
Gets the value of the textWidth property.- Returns:
- possible object is
LocalizedTextWidth
-
setTextWidth
public void setTextWidth(LocalizedTextWidth value)
Sets the value of the textWidth property.- Parameters:
value- allowed object isLocalizedTextWidth
-
copyTo
public Object copyTo(Object target)
- Specified by:
copyToin interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2
-
copyTo
public Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)
- Specified by:
copyToin interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2
-
createNewInstance
public Object createNewInstance()
- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2
-
-