Package org.bedework.calfacade
Class BwLongString
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwLongString>,SizedEntity,org.bedework.util.logging.Logged
A String value in bedework. This class is for strings that can be long
usually over 4k. This is mostly because db systems tend to handle long
strings in a different manner. (clobs, no searches etc)
Internally there is no difference, this just provides essentially a label for the schema.
- Version:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Constructor Summary
ConstructorsConstructorDescriptionConstructorBwLongString(String lang, String value) Create a string by specifying all its fields -
Method Summary
Modifier and TypeMethodDescriptionclone()Make visiblestatic BwLongStringfindLang(String lang, Collection<BwLongString> c) Search the collection for a string that matches the given language code.Methods inherited from class org.bedework.calfacade.base.BwStringBase
checkNulls, compareTo, findLanguage, getLang, getLangPar, getSize, getValue, hasDumpValue, hashCode, setLang, setValue, toString, toStringSegment, updateMethods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
equals, getHref, getId, markUnsaved, setHref, setId, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLoggerMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
BwLongString
public BwLongString()Constructor -
BwLongString
Create a string by specifying all its fields- Parameters:
lang- String language codevalue- String value
-
-
Method Details
-
findLang
Search the collection for a string that matches the given language code.A supplied lang of null implies the default language code.
If the supplied language equals any language in the collection we return with that.
Otherwise if if matches the first part of a qualified code we take that, e.g lan="en" could match "en_US"
Otherwise we return the first one we found.
- Parameters:
lang- language codec- collection of strings- Returns:
- BwString or null if no strings.
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwStringBase<BwLongString>- Returns:
- Object of class T
-