|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.folt.models.datamodel.sql.SQLTmxProp
@Entity public class SQLTmxProp
This class implements the linguistic properties reflecting the prop (from prop-grop) or note from tmx. e.g.
content = the value of the property ("Radblocksysteme")
lang = language of the property ("de")
o_encoding = encoding of the property
propType = type of the property (PROP or NOTE)
type = the type of the property ("Att::Maschinentyp")
</prep>
| Constructor Summary | |
|---|---|
SQLTmxProp()
|
|
SQLTmxProp(org.jdom.Element prop)
Creates a TmxProp from a given Tmx prop element. |
|
SQLTmxProp(java.lang.String type,
java.lang.String content)
Creates a TmxProp from the given parameters. |
|
SQLTmxProp(java.lang.String type,
java.lang.String lang,
java.lang.String o_encoding,
java.lang.String content)
Creates a TmxProp from the given parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
createCSVString()
createCSVString generates aString representation useful for csv export; separator = tab |
java.lang.String |
createCSVString(java.lang.String separator)
createCSVString generates aString representation useful for csv export; separator supplied |
java.lang.String |
createCSVString(java.lang.String separator,
java.lang.String nullValue,
java.lang.String terminator)
createCSVString |
java.lang.String |
format()
format |
java.lang.String |
getContent()
|
java.lang.Integer |
getId()
|
java.lang.String |
getLang()
|
java.lang.String |
getO_encoding()
|
SQLMonoLingualObject |
getParentMonoLingualObject()
|
SQLMultiLingualObject |
getParentMultiLingualObject()
|
TmxProp.PropType |
getPropType()
|
java.lang.String |
getType()
|
static void |
main(java.lang.String[] args)
main |
TmxProp |
mapFrom()
mapFrom maps the SQLTmxProp to a standard TmxProp |
static SQLTmxProp |
mapTo(TmxProp tmxprop)
|
void |
setContent(java.lang.String content)
|
void |
setId(java.lang.Integer id)
|
void |
setLang(java.lang.String lang)
|
void |
setO_encoding(java.lang.String o_encoding)
|
void |
setParentMonoLingualObject(SQLMonoLingualObject parentMonoLingualObject)
|
void |
setParentMultiLingualObject(SQLMultiLingualObject parentMultiLingualObject)
|
void |
setPropType(TmxProp.PropType propType)
|
void |
setType(java.lang.String type)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLTmxProp()
public SQLTmxProp(org.jdom.Element prop)
prop - the property of a TMX element (either a prop or a note)
public SQLTmxProp(java.lang.String type,
java.lang.String content)
type - the TMX typecontent - the content of the property or note
public SQLTmxProp(java.lang.String type,
java.lang.String lang,
java.lang.String o_encoding,
java.lang.String content)
type - the TMX typelang - the TMX lang or xml:lango_encoding - the o-encoding of the propertycontent - the content of the property or note| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - public static SQLTmxProp mapTo(TmxProp tmxprop)
public java.lang.String createCSVString()
public java.lang.String createCSVString(java.lang.String separator)
separator - the separator to use
public java.lang.String createCSVString(java.lang.String separator,
java.lang.String nullValue,
java.lang.String terminator)
separator - the separator to usenullValue - the null value to useterminator - the terminator to use
public java.lang.String format()
public java.lang.String getContent()
public java.lang.Integer getId()
public java.lang.String getLang()
public java.lang.String getO_encoding()
public SQLMonoLingualObject getParentMonoLingualObject()
public SQLMultiLingualObject getParentMultiLingualObject()
public TmxProp.PropType getPropType()
public java.lang.String getType()
public TmxProp mapFrom()
public void setContent(java.lang.String content)
content - the content to setpublic void setId(java.lang.Integer id)
id - the id to setpublic void setLang(java.lang.String lang)
lang - the lang to setpublic void setO_encoding(java.lang.String o_encoding)
o_encoding - the o_encoding to setpublic void setParentMonoLingualObject(SQLMonoLingualObject parentMonoLingualObject)
parentMonoLingualObject - the parentMonoLingualObject to setpublic void setParentMultiLingualObject(SQLMultiLingualObject parentMultiLingualObject)
parentMultiLingualObject - the parentMultiLingualObject to setpublic void setPropType(TmxProp.PropType propType)
propType - the propType to setpublic void setType(java.lang.String type)
type - the type to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||