org.jbpm.task
Class I18NText
java.lang.Object
org.jbpm.task.I18NText
- All Implemented Interfaces:
- Externalizable, Serializable
@Entity
public class I18NText
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
I18NText
public I18NText()
I18NText
public I18NText(String language,
String text)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getId
public Long getId()
setId
public void setId(long id)
getLanguage
public String getLanguage()
setLanguage
public void setLanguage(String language)
getText
public String getText()
setText
public void setText(String text)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getLocalText
public static String getLocalText(List<I18NText> list,
String prefferedLanguage,
String defaultLanguage)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.