|
||||||||||
| 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.LinguisticProperty
@Entity public class LinguisticProperty
A LinguisticProperty is an object which is aimed for storing (attribute/value) information for a MOL or MUL.
It is built up from a key which identifies the property
a value, e.g. a TmxProp or similar object
a status which identifies the object
a status which allows to attach some additional data with the object. The rationality behind the data (in contrast to the value) is that this variable can be used to asscoiate the original
object with the property (e.g. an XML Element, if the TmxProp is derived from a Tmx TU or TUV property.
| Nested Class Summary | |
|---|---|
static class |
LinguisticProperty.PropStatus
|
static class |
LinguisticProperty.PropType
|
| Constructor Summary | |
|---|---|
LinguisticProperty()
|
|
LinguisticProperty(java.lang.Object key,
LinguisticProperty.PropStatus propStatus,
java.lang.Object value)
|
|
LinguisticProperty(java.lang.Object key,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
boolean |
bCompare(LinguisticProperties compLingProps)
bCompare check if this LinguisticProperty exists in compLingProps; if yes, return true, otherwise false |
boolean |
bCompare(LinguisticProperty compLingProp)
bCompare compare against a LinguisticProperty; the key and the value are "stringified" |
java.lang.String |
format()
format |
static LinguisticProperty |
fromJson(java.lang.String linguisticProperty)
fromJson |
java.lang.Object |
getData()
|
java.lang.Object |
getKey()
|
LinguisticProperty.PropStatus |
getPropStatus()
|
LinguisticProperty.PropType |
getPropType()
|
java.lang.Object |
getValue()
|
java.lang.String |
mapToJson()
mapToJson |
void |
setData(java.lang.Object data)
|
void |
setKey(java.lang.Object key)
|
void |
setPropStatus(LinguisticProperty.PropStatus propStatus)
|
void |
setPropType(LinguisticProperty.PropType propType)
|
void |
setValue(java.lang.Object value)
|
| 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 LinguisticProperty()
public LinguisticProperty(java.lang.Object key,
java.lang.Object value)
value - key -
public LinguisticProperty(java.lang.Object key,
LinguisticProperty.PropStatus propStatus,
java.lang.Object value)
key - the key for the Property; should be uniquepropStatus - the status of the propertyvalue - the associated value (e.g. a TmxProp)| Method Detail |
|---|
public static LinguisticProperty fromJson(java.lang.String linguisticProperty)
value2 -
public boolean bCompare(LinguisticProperties compLingProps)
compLingProps - a set of LinguisticProperty (LinguisticProperties)
public boolean bCompare(LinguisticProperty compLingProp)
compLingProp - the LinguisticProperty to compare against
public java.lang.String format()
public java.lang.Object getData()
public java.lang.Object getKey()
public LinguisticProperty.PropStatus getPropStatus()
public LinguisticProperty.PropType getPropType()
public java.lang.Object getValue()
public java.lang.String mapToJson()
public void setData(java.lang.Object data)
data - the data to setpublic void setKey(java.lang.Object key)
key - the key to setpublic void setPropStatus(LinguisticProperty.PropStatus propStatus)
propStatus - the propStatus to setpublic void setPropType(LinguisticProperty.PropType propType)
propType - the propType to setpublic void setValue(java.lang.Object value)
value - the value to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||