com.flexive.shared.value
Class FxHTML

java.lang.Object
  extended by com.flexive.shared.value.FxValue<java.lang.String,FxString>
      extended by com.flexive.shared.value.FxString
          extended by com.flexive.shared.value.FxHTML
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FxValue>

public class FxHTML
extends FxString

HTML Content, like FxString but with the optional tidyHTML

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
FxString, isTidyHTML(), Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.value.FxString
EMPTY
 
Fields inherited from class com.flexive.shared.value.FxValue
DEFAULT_MULTILANGUAGE, defaultLanguage, emptyTranslations, multiLanguage, singleValue, translations, VALUE_NODATA
 
Constructor Summary
FxHTML(boolean multiLanguage, long defaultLanguage, java.util.Map<java.lang.Long,java.lang.String> translations)
           
FxHTML(boolean multiLanguage, long defaultLanguage, java.lang.String value)
           
FxHTML(boolean multiLanguage, java.util.Map<java.lang.Long,java.lang.String> translations)
           
FxHTML(boolean multiLanguage, java.lang.String value)
           
FxHTML(FxHTML clone)
           
FxHTML(FxString clone)
           
FxHTML(long defaultLanguage, boolean multiLanguage)
          Constructor
FxHTML(long defaultLanguage, java.util.Map<java.lang.Long,java.lang.String> translations)
           
FxHTML(long defaultLanguage, java.lang.String value)
           
FxHTML(java.util.Map<java.lang.Long,java.lang.String[]> translations, int pos)
           
FxHTML(java.util.Map<java.lang.Long,java.lang.String> translations)
           
FxHTML(java.lang.String value)
           
 
Method Summary
 FxHTML copy()
          Creates a copy of the given object (useful if the actual type is unknown).
 java.lang.Class<java.lang.String> getValueClass()
          Return the class instance of the value type.
 boolean isImmutableValueType()
          Return true if T is immutable (e.g.
 boolean isTidyHTML()
          Content is run through JTidy (http://jtidy.sourceforge.net) before its saved
 FxHTML setTidyHTML(boolean tidyHTML)
          Enable or disable tidy before saving
 
Methods inherited from class com.flexive.shared.value.FxString
fromString, getEmptyValue
 
Methods inherited from class com.flexive.shared.value.FxValue
clearDefaultLanguage, clearValueData, compareTo, copyValue, equals, fromPortableString, getBestTranslation, getBestTranslation, getBestTranslation, getBestTranslation, getDefaultLanguage, getDefaultTranslation, getErrorValue, getIsEmpty, getMaxInputLength, getPortableStringValue, getSelectedLanguage, getSqlValue, getStringValue, getTranslatedLanguages, getTranslation, getTranslation, getValueData, getValueDataRaw, getXPath, getXPathName, hasDefaultLanguage, hashCode, hasValueData, isAcceptsEmptyDefaultTranslations, isDefaultLanguage, isEmpty, isMultiLanguage, isReadOnly, isTranslationEmpty, isTranslationEmpty, isValid, isValid, isValid, removeLanguage, setChangeListener, setDefaultLanguage, setDefaultLanguage, setDefaultTranslation, setEmpty, setEmpty, setMaxInputLength, setReadOnly, setSelectedLanguage, setTranslation, setTranslation, setValue, setValueData, setXPath, setXPath, toString, translationExists
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FxHTML

public FxHTML(long defaultLanguage,
              boolean multiLanguage)
Constructor

Parameters:
multiLanguage - multilanguage value?
defaultLanguage - the default language

FxHTML

public FxHTML(boolean multiLanguage,
              java.util.Map<java.lang.Long,java.lang.String> translations)

FxHTML

public FxHTML(boolean multiLanguage,
              long defaultLanguage,
              java.util.Map<java.lang.Long,java.lang.String> translations)

FxHTML

public FxHTML(boolean multiLanguage,
              long defaultLanguage,
              java.lang.String value)

FxHTML

public FxHTML(boolean multiLanguage,
              java.lang.String value)

FxHTML

public FxHTML(java.util.Map<java.lang.Long,java.lang.String[]> translations,
              int pos)

FxHTML

public FxHTML(FxHTML clone)

FxHTML

public FxHTML(FxString clone)

FxHTML

public FxHTML(java.util.Map<java.lang.Long,java.lang.String> translations)

FxHTML

public FxHTML(long defaultLanguage,
              java.util.Map<java.lang.Long,java.lang.String> translations)

FxHTML

public FxHTML(long defaultLanguage,
              java.lang.String value)

FxHTML

public FxHTML(java.lang.String value)
Method Detail

isTidyHTML

public boolean isTidyHTML()
Content is run through JTidy (http://jtidy.sourceforge.net) before its saved

Returns:
if content is run through tidy before saving

setTidyHTML

public FxHTML setTidyHTML(boolean tidyHTML)
Enable or disable tidy before saving

Parameters:
tidyHTML - tidy flag
Returns:
this

copy

public FxHTML copy()
Creates a copy of the given object (useful if the actual type is unknown).

Overrides:
copy in class FxString
Returns:
a copy of the given object (useful if the actual type is unknown).

getValueClass

public java.lang.Class<java.lang.String> getValueClass()
Return the class instance of the value type.

Overrides:
getValueClass in class FxString
Returns:
the class instance of the value type.

isImmutableValueType

public boolean isImmutableValueType()
Return true if T is immutable (e.g. java.lang.String). This prevents cloning of the translations in copy constructors.

Overrides:
isImmutableValueType in class FxString
Returns:
true if T is immutable (e.g. java.lang.String)