de.folt.models.datamodel
Class LinguisticProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by de.folt.util.ObservableHashMap<java.lang.String,java.lang.Object>
              extended by de.folt.models.datamodel.LinguisticProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

@Entity
public class LinguisticProperties
extends ObservableHashMap<java.lang.String,java.lang.Object>
implements java.io.Serializable

Author:
klemens
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
LinguisticProperties()
           
 
Method Summary
 void add(LinguisticProperty lingProp)
          add add a LingusticProperty to the LinguisticProperties
 boolean bCompare(LinguisticProperties compLingProps)
          bCompare compare against all the LinguisticProperty of LinguisticProperties based on bCompare(LinguisticProperty compLingProp); the keys and the values are "stringified"
 java.lang.String format()
          format
 java.lang.String formatAsXml()
          formatAsXml
 java.lang.String formatCoreAttributesToTermNote()
          formatCoreAttributesToTermNote
 java.lang.String formatCoreAttributesToTmx()
          formatCoreAttributesToTmx formats the attributes of the tuv element
 java.lang.String formatNotePropToTmx()
          formatToTmx returns a Prop/NoteFormatted string
 java.lang.String mapToJson()
          mapToJson
 void remove(LinguisticProperty lingProp)
          remove remove a LinguisticProperty
 java.lang.String search(java.lang.String attribute)
          Search for an attribute (name) and return value of the attribute
 java.lang.String simpleFormat()
           
 
Methods inherited from class de.folt.util.ObservableHashMap
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, getId, hasChanged, isChanged, notifyObservers, notifyObservers, put, remove, setChanged, setId
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

LinguisticProperties

public LinguisticProperties()
Method Detail

add

public void add(LinguisticProperty lingProp)
add add a LingusticProperty to the LinguisticProperties

Parameters:
lingProp -

search

public java.lang.String search(java.lang.String attribute)
Search for an attribute (name) and return value of the attribute

Parameters:
attribute -
Returns:
the value of the attribute or null if not found

bCompare

public boolean bCompare(LinguisticProperties compLingProps)
bCompare compare against all the LinguisticProperty of LinguisticProperties based on bCompare(LinguisticProperty compLingProp); the keys and the values are "stringified"

Parameters:
compLingProp - the LinguisticProperties to compare against
Returns:
true if all the property matches, otherwise false

format

public java.lang.String format()
format

Returns:
the formatted LinguisticProperties

formatAsXml

public java.lang.String formatAsXml()
formatAsXml

Returns:

formatCoreAttributesToTermNote

public java.lang.String formatCoreAttributesToTermNote()
formatCoreAttributesToTermNote

Returns:

formatCoreAttributesToTmx

public java.lang.String formatCoreAttributesToTmx()
formatCoreAttributesToTmx formats the attributes of the tuv element

Returns:

formatNotePropToTmx

public java.lang.String formatNotePropToTmx()
formatToTmx returns a Prop/NoteFormatted string

Returns:

mapToJson

public java.lang.String mapToJson()
mapToJson

Returns:

remove

public void remove(LinguisticProperty lingProp)
remove remove a LinguisticProperty

Parameters:
lingProp -

simpleFormat

public java.lang.String simpleFormat()