net.liftweb

util

package util

The util package object

Visibility
  1. Public
  2. All

Type Members

  1. final class A extends AnyRef

  2. case class ActorPingException(msg: String, e: Throwable) extends RuntimeException with Product with Serializable

    Exception thrown if a ping can't be scheduled.

  3. abstract class AnyVar[T, MyType <: AnyVar[T, MyType]] extends AnyVarTrait[T, MyType]

  4. trait AnyVarTrait[T, MyType <: AnyVarTrait[T, MyType]] extends PSettableValueHolder[T] with HasCalcDefaultValue[T]

    Abstract a request or a session scoped variable.

  5. final case class AppendDelta[T](item: T) extends DeltaInfo[T] with Product with Serializable

  6. final case class AppendKidsSubNode() extends SubNode with WithKids with Product with Serializable

  7. final case class AttrAppendSubNode(attr: String) extends SubNode with AttributeRule with Product with Serializable

  8. trait AttrHelper[+Holder[X]] extends AnyRef

  9. final case class AttrRemoveSubNode(attr: String) extends SubNode with AttributeRule with Product with Serializable

  10. final case class AttrSelector(name: String, value: String, subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  11. final case class AttrSubNode(attr: String) extends SubNode with AttributeRule with Product with Serializable

  12. sealed trait AttributeRule extends AnyRef

  13. trait AvoidTypeErasureIssues1 extends AnyRef

    Generics on the JVM have an issues with Type Erasure.

  14. class BCrypt extends AnyRef

  15. trait BaseField extends SettableField with FieldContainer

  16. trait BasicTypesHelpers extends AnyRef

    This trait adds functionality to Scala standard types

  17. trait BindHelpers extends AnyRef

    Helpers assocated with bindings

  18. trait Bindable extends AnyRef

    This trait is used to identify an object that is representable as a NodeSeq.

  19. final case class BoxNodeSeqFuncIterableConst(it: Box[(NodeSeq) ⇒ NodeSeq]) extends IterableConst with Product with Serializable

    The implementation for a Box[NodeSeq => Node] Iterable Const

  20. case class CSSParser(prefix: String) extends Parsers with Product with Serializable

    Combinator parser for prefixing root relative paths with a given prefix

  21. trait CanBind[-T] extends AnyRef

  22. trait Cell[T] extends Dependent

    A wiring Cell.

  23. trait ClassHelpers extends AnyRef

    ClassHelpers provide several functions to instantiate a Class object given the class name and one or more package names

  24. final case class ClassSelector(clss: String, subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  25. class ClearClearable extends CssBindImpl

    This CssBind will clear all nodes marked with the class clearable.

  26. trait CombParserHelpers extends AnyRef

    The CombParserHelpers trait provides parser combinators helpers.

  27. class ConcurrentLock extends ReentrantReadWriteLock

  28. trait ConfirmField extends BaseField

    A base field that also has a confirm method

  29. trait ControlHelpers extends ClassHelpers

    Control helpers provide alternate ways to catch exceptions and ignore them as necessary

  30. trait ConvertableToDate extends AnyRef

  31. final class Css extends AnyRef

  32. trait CssBind extends CssSel

  33. type CssBindFunc = CssSel

    Definition Classes
    package
  34. abstract class CssBindImpl extends CssBind

    An abstract implementation of CssBind.

  35. final class CssJBridge extends AnyRef

    Bridge from Java-land to Scala

  36. trait CssSel extends (NodeSeq) ⇒ NodeSeq

    This trait is both a NodeSeq => NodeSeq and has the ability to chain CssSel instances so that they can be applied en masse to incoming NodeSeq and do the transformation.

  37. sealed trait CssSelector extends AnyRef

  38. class Currency extends AnyRef

    A simple fixed-point currency representation

  39. class CurrencyMismatchException extends Exception

    This exception is thrown if an operation is attempted on two currency values where currency symbols do not match.

  40. abstract class CurrencyZone extends AnyRef

  41. trait DateTimeConverter extends AnyRef

    Implement this trait to specify a set of rules to parse and format dates

  42. sealed trait DeltaInfo[T] extends AnyRef

    Provide information about the deltas between two lists

  43. trait Dependent extends AnyRef

    Something that depends on the values of other cells

  44. trait DollarCurrency extends TwoFractionDigits

  45. final case class DynamicCell[T](f: () ⇒ T) extends Cell[T] with Product with Serializable

    A cell that changes value on each access.

  46. trait DynoVar[T] extends AnyRef

  47. final case class ElemSelector(elem: String, subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  48. final case class EnclosedSelector(selector: CssSelector, kid: CssSelector) extends CssSelector with Product with Serializable

  49. abstract class EnumWithDescription extends AnyRef

  50. case class False(msgs: List[String]) extends MonadicCondition with Product with Serializable

  51. class FatLazy[T] extends AnyRef

    A class that does lazy evaluation

  52. trait FieldContainer extends AnyRef

  53. case class FieldError(field: FieldIdentifier, msg: NodeSeq) extends Product with Serializable

    Associate a FieldIdentifier with a NodeSeq

  54. trait FieldIdentifier extends AnyRef

    Defines the association of this reference with a markup tag ID

  55. case class FormBuilderLocator[T](func: (T, (T) ⇒ Unit) ⇒ NodeSeq, manifest: Manifest[T]) extends Product with Serializable

  56. final case class FuncCell1[A, Z](a: Cell[A], f: (A) ⇒ Z) extends Cell[Z] with Product with Serializable

  57. final case class FuncCell2[A, B, Z](a: Cell[A], b: Cell[B], f: (A, B) ⇒ Z) extends Cell[Z] with Product with Serializable

  58. final case class FuncCell3[A, B, C, Z](a: Cell[A], b: Cell[B], c: Cell[C], f: (A, B, C) ⇒ Z) extends Cell[Z] with Product with Serializable

  59. final case class FuncCell4[A, B, C, D, Z](a: Cell[A], b: Cell[B], c: Cell[C], d: Cell[D], f: (A, B, C, D) ⇒ Z) extends Cell[Z] with Product with Serializable

  60. final case class FuncCell5[A, B, C, D, E, Z](a: Cell[A], b: Cell[B], c: Cell[C], d: Cell[D], e: Cell[E], f: (A, B, C, D, E) ⇒ Z) extends Cell[Z] with Product with Serializable

  61. trait HasCalcDefaultValue[T] extends AnyRef

  62. trait HasParams extends AnyRef

  63. trait Html5Parser extends AnyRef

    A utility that supports parsing of HTML5 file.

  64. trait Html5Writer extends AnyRef

  65. trait HttpHelpers extends AnyRef

  66. final case class IdSelector(id: String, subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  67. class InMemoryCache extends TemplateCache[(Locale, List[String]), NodeSeq]

    Caches templates in a LRU map

  68. trait Injector extends AnyRef

    A trait that does basic dependency injection.

  69. final case class InsertAfterDelta[T](item: T, after: T) extends DeltaInfo[T] with Product with Serializable

  70. final case class InsertAtStartDelta[T](item: T) extends DeltaInfo[T] with Product with Serializable

  71. trait IoHelpers extends AnyRef

  72. trait IterableConst extends AnyRef

    A trait that has some helpful implicit conversions from Iterable[NodeSeq], Seq[String], Box[String], and Option[String]

  73. sealed trait IterableFunc extends (NodeSeq) ⇒ Seq[NodeSeq]

  74. case class JsonCmd(command: String, target: String, params: Any, all: Map[String, Any]) extends Product with Serializable

    Impersonates a JSON command

  75. class KeyedCache[K, T] extends AnyRef

    A simple Read-through cache.

  76. final case class KidsSubNode() extends SubNode with WithKids with Product with Serializable

  77. class LRU[KeyType, ValueType] extends LRUMap[KeyType, ValueType]

    LRU Cache wrapping org.apache.commons.collections.map.LRUMap

  78. class LZ[T] extends AnyRef

    LZ encapsulates a lazy value.

  79. class LiftFlowOfControlException extends RuntimeException

    The superclass for all Lift flow of control exceptions

  80. trait LiftValue[T] extends PSettableValueHolder[T]

    Kinda like a JavaBean property.

  81. trait ListHelpers extends AnyRef

    The ListHelpers trait provides useful functions which can be applied to Lists.

  82. trait LoanWrapper extends CommonLoanWrapper

    This trait defines the principle contract for function objects that wrap the processing of HTTP requests by Lift while utilizing the preestablished request-local scope.

  83. trait Mailer extends SimpleInjector

    This trait implmenets the mail sending.

  84. trait Maker[T] extends AnyRef

    In addition to an Injector, you can have a Maker which will make a given type.

  85. class MakerJ extends AnyRef

  86. class MakerStack[T] extends StackableMaker[T]

    An implementation where you can define the stack of makers.

  87. trait MemoizeVar[K, V] extends AnyRef

  88. trait MonadicCondition extends AnyRef

    A MonadicCondition allows building boolean expressions of the form (a(0) && a(1) && .

  89. final case class NameSelector(name: String, subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  90. class NamedPF[-A, +B] extends NamedPartialFunction[A, B]

    This class is the base implementation of the NamedPartialFunction trait.

  91. trait NamedPartialFunction[-A, +B] extends PartialFunction[A, B]

    This trait is used to represent a PartialFunction with additional associated metadata, a name that allows the NamedPartialFunction to be looked up dynamically.

  92. final case class NodeSeqFuncIterableConst(it: Iterable[(NodeSeq) ⇒ NodeSeq]) extends IterableConst with Product with Serializable

    The implementation for a NodeSeq => NodeSeq Iterable Const

  93. final case class NodeSeqIterableConst(it: Iterable[NodeSeq]) extends IterableConst with Product with Serializable

    The implementation for a NodeSeq Iterable Const

  94. abstract class NonCleanAnyVar[T] extends AnyVar[T, NonCleanAnyVar[T]]

  95. final case class OptionNodeSeqFuncIterableConst(it: Option[(NodeSeq) ⇒ NodeSeq]) extends IterableConst with Product with Serializable

    The implementation for a Option[NodeSeq => Node] Iterable Const

  96. final class OptionalCons extends AnyRef

    Optional cons that implements the expression: expr ?> value ::: List

  97. case class PCData(_data: String) extends Atom[String] with Product with Serializable

  98. trait PCDataMarkupParser[PCM <: MarkupParser with MarkupHandler] extends MarkupParser

    Extends the Markup Parser to do the right thing (tm) with PCData blocks

  99. class PCDataXmlParser extends ConstructingHandler with PCDataMarkupParser[PCDataXmlParser] with ExternalSources

  100. trait PSettableValueHolder[T] extends PValueHolder[T] with SettableValueHolder

  101. trait PValueHolder[T] extends ValueHolder

  102. final class PartialFunctionWrapper[A] extends AnyRef

    The helper class that facilitates wrapping of one PartialFunction around another

  103. final case class PrependKidsSubNode() extends SubNode with WithKids with Product with Serializable

  104. class REDoer[T] extends (T, String) ⇒ Box[T]

  105. class REMatcher extends AnyRef

    This class adds higher-order functions and lazy evaluation for pattern matching on top of the standard Java regular expressions library.

  106. trait ReadableField extends FieldIdentifier with ValueHolder with Bindable

    A field that can be displayed but not edited

  107. final case class RemoveDelta[T](item: T) extends DeltaInfo[T] with Product with Serializable

    The new list does not contain the item.

  108. class ResponseInfoHolder extends AnyRef

    Holds information about a response

  109. class RestoringWeakReference[T <: AnyRef] extends AnyRef

    RestoringWeakReference contains a scala.ref.WeakReference that, after it has been nulled out, uses a restorer function to restore the value.

  110. trait SafeSeqParser extends Parsers

  111. sealed trait Schedule extends Loggable

    The Schedule object schedules an actor to be ping-ed with a given message after a specified delay.

  112. class ScheduleJBridge extends AnyRef

  113. trait SecurityHelpers extends AnyRef

    The SecurityHelpers trait provides functions to:

  114. final case class SelectThisNode(kids: Boolean) extends SubNode with Product with Serializable

  115. final case class SeqBindableIterableConst(it: Iterable[Bindable]) extends IterableConst with Product with Serializable

    Sequence of Bindable iterable const

  116. final case class SeqCell[T](cells: Cell[T]*) extends Cell[Seq[T]] with Product with Serializable

    A collection of Cells og a given type

  117. final case class SeqStringIterableConst(it: Iterable[String]) extends IterableConst with Product with Serializable

    Sequence of String iterable const

  118. trait Settable extends ValueHolder

    A value that can be set

  119. trait SettableField extends ReadableField with SettableValueHolder

    A field that can be set

  120. trait SettableValueHolder extends Settable

  121. trait SimpleInjector extends Injector

    An implementation of Injector that has an implementation

  122. class SoftReferenceCache[K, V] extends AnyRef

    A Map that holds the values as SoftReference-s.

  123. class SoftValue[K, V] extends SoftReference[V]

  124. trait StackableMaker[T] extends Maker[T]

    A StackableMaker allows DynamicVar functionality by supply a Maker or function that will vend an instance during any sub-call on the stack and then restore the implementation.

  125. final case class StarSelector(subNodes: Box[SubNode]) extends CssSelector with Product with Serializable

  126. trait StringHelpers extends AnyRef

    Utility methods for manipulating strings.

  127. trait StringPromotable extends AnyRef

    This trait marks something that can be promoted into a String.

  128. trait StringValidators extends AnyRef

  129. sealed trait SubNode extends AnyRef

  130. final class SuperListString extends AnyRef

    A class that allows chaining "foo" / "bar" / "baz"

  131. final case class SuperString(what: String) extends Product with Serializable

    The SuperString class adds functionalities to the String class

  132. final case class SurroundKids() extends SubNode with WithKids with Product with Serializable

  133. trait TemplateCache[K, V] extends AnyRef

  134. class ThreadGlobal[T] extends AnyRef

    This is a decorator for a ThreadLocal variable that provides convenience methods to transform the variable to a Box and execute functions in a "scope" wherein the variable may hold a different value.

  135. class ThreadLazy[TheType] extends LoanWrapper

    A thread-local lazy value that provides a means to evaluate a function in a lazily-evaluated scope.

  136. trait TimeHelpers extends AnyRef

    The TimeHelpers trait provide functions to create TimeSpans (an object representing an amount of time), to manage date formats or general utility functions (get the date for today, get year/month/day number,.

  137. final case class ToCssBindPromoter(stringSelector: Box[String], css: Box[CssSelector]) extends Product with Serializable

    An intermediate class used to promote a String or a CssSelector to something that can be associated with a value to apply to the selector

  138. trait ToJsCmd extends AnyRef

    TODO: Is this something that can be converted to a JavaScript Command

  139. trait TwoFractionDigits extends AnyRef

  140. final class ValueCell[A] extends Cell[A] with LiftValue[A]

    A ValueCell holds a value that can be mutated.

  141. trait ValueHolder extends AnyRef

  142. trait ValueWithDescription extends AnyRef

  143. trait Vendor[T] extends Maker[T] with () ⇒ T

    A Vendor is a Maker that also guarantees that it will return a value

  144. final class VendorJ extends AnyRef

  145. class VendorJBridge extends AnyRef

    A bridge from Java to Scala

  146. sealed trait WithKids extends AnyRef

Value Members

  1. object A extends

  2. object AU extends CurrencyZone

  3. object AltXML extends AnyRef

  4. object AnyVar extends AnyRef

  5. object AvoidTypeErasureIssues1 extends AnyRef

    The companion object that does the implicit vending of AvoidTypeErasureIssues1

  6. object BCrypt extends

  7. object BasicTypesHelpers extends BasicTypesHelpers with StringHelpers with ControlHelpers

    This object adds functionality to Scala standard types.

  8. object BindHelpers extends BindHelpers

    BindHelpers can be used to obtain additional information while a bind call is executing.

  9. object BindPlus extends AnyRef

  10. object BundleBuilder extends AnyRef

    Converts a NodeSeq of a particular format into a ResourceBundle.

  11. object CSSHelpers extends ControlHelpers

  12. object CanBind extends AnyRef

  13. object Cell extends AnyRef

  14. object CheckNodeSeq extends AnyRef

  15. object ClassHelpers extends ClassHelpers with ControlHelpers

  16. object ClearClearable extends ClearClearable

    This CssBind will clear all nodes marked with the class clearable.

  17. object ClearNodes extends (NodeSeq) ⇒ NodeSeq

    Replaces the nodes with an Empty NodeSeq.

  18. object ControlHelpers extends ControlHelpers with ClassHelpers

  19. object ConvertableToDate extends AnyRef

  20. object Css extends

  21. object CssBind extends AnyRef

  22. object CssSelectorParser extends PackratParsers with ImplicitConversions

    Parse a subset of CSS into the appropriate selector objects

  23. object Currency extends AnyRef

  24. object DefaultDateTimeConverter extends DateTimeConverter

    A default implementation of DateTimeConverter that uses (Time)Helpers

  25. object Done extends Product with Serializable

  26. object DontMergeAttributes extends SubNode with Product with Serializable

  27. object EU extends CurrencyZone

  28. object FatLazy extends AnyRef

    Companion object for FatLaxy.

  29. object FieldError extends Serializable

  30. object FuncCell extends AnyRef

    The companion object for FuncCell (function cells)

  31. object GB extends CurrencyZone

  32. object HeadHelper extends AnyRef

    This object provides functions to setup the head section of html documents.

  33. object Helpers extends TimeHelpers with StringHelpers with ListHelpers with SecurityHelpers with BindHelpers with HttpHelpers with IoHelpers with BasicTypesHelpers with ClassHelpers with ControlHelpers

    The Helpers object provides a lot of utility functions:

  34. object Html5 extends Html5Parser with Html5Writer

  35. object Html5Constants extends AnyRef

  36. object HtmlEntities extends AnyRef

    Utilities for simplifying use of named HTML symbols.

  37. object HttpHelpers extends ListHelpers with StringHelpers

  38. object InMemoryCache extends AnyRef

    Companion module for InMemoryCache

  39. object IoHelpers extends IoHelpers

  40. object IterableConst extends AnyRef

    The companion object that does the helpful promotion of common collection types into an IterableConst, e.

  41. object IterableFunc extends AnyRef

  42. object JsonCommand extends AnyRef

    A helpful extractor to take the JValue sent from the client-side JSON stuff and make some sense of it.

  43. object LD extends AnyRef

    Calculate the edit distance between words

  44. object LZ extends AnyRef

    Sometimes, you want to do pattern matching against a lazy value.

  45. object ListHelpers extends ListHelpers

  46. object LoggingAutoConfigurer extends AnyRef

    Function object that can be used in Logger.

  47. object Mailer extends Mailer

    Utilities for sending email.

  48. object Maker extends AnyRef

  49. object MonadicConversions extends AnyRef

    Holds the implicit conversions from/to MonadicCondition

  50. object NamedPF extends AnyRef

  51. object NoCache extends TemplateCache[(Locale, List[String]), NodeSeq]

    A cache that caches nothing

  52. object PCDataXmlParser extends AnyRef

  53. object PValueHolder extends AnyRef

  54. object PassThru extends (NodeSeq) ⇒ NodeSeq

    A passthrough function that does not change the nodes

  55. object ProcessQueue extends Product with Serializable

  56. object Props extends Logger

    Configuration management utilities.

  57. object RE extends AnyRef

    A regular expressions helper library RE("foo") =~ "A string" -or- "A string" =~: RE("foo") -or- "A String".

  58. object REMatcher extends AnyRef

  59. object RestoringWeakReference extends AnyRef

  60. object Safe extends AnyRef

    Manage the current "safety" state of the stack

  61. object SafeNodeSeq extends AnyRef

    Used for type-safe pattern matching of an Any and returns a Seq[Node]

  62. object Schedule extends Schedule

    The Schedule object schedules an actor to be ping-ed with a given message after a specified delay.

  63. object Scheduled extends Product with Serializable

    Send to the actor that we scheduled for recurrent ping

  64. object SecurityHelpers extends StringHelpers with IoHelpers with SecurityHelpers

  65. object SoftReferenceCache extends AnyRef

    Companion module that has the role of monitoring garbage collected references and remove the orphaned keys from the cache.

  66. object StringHelpers extends StringHelpers

  67. object StringPromotable extends AnyRef

  68. object SubNode extends AnyRef

  69. object ThreadLazy extends AnyRef

  70. object TimeHelpers extends TimeHelpers with ControlHelpers with ClassHelpers

    The TimeHelpers object extends the TimeHelpers.

  71. object True extends MonadicCondition with Product with Serializable

  72. object US extends CurrencyZone

  73. object UnSchedule extends Product with Serializable

    Send by the scheduled actor to sign off from recurrent scheduling

  74. object VCardParser extends Parsers

    Parser a VCard entry such as

  75. object ValueCell extends AnyRef

    The companion object that has a helpful constructor

  76. object ValueHolder extends AnyRef

  77. object Vendor extends AnyRef

    A companion to the Vendor trait

  78. object VendorJ extends

  79. def itConst[T](ic: T)(implicit f: (T) ⇒ IterableConst): IterableConst

    Promote to an IterableConst when implicits won't do it for you

    Promote to an IterableConst when implicits won't do it for you

    T

    the type of the parameter

    ic

    the thing that can be promoted to an IterableConst

    f

    the implicit function that takes T and makes it an IterableConst

    returns

    an IterableConst

    Definition Classes
    package
  80. def nsFunc(f: (NodeSeq) ⇒ NodeSeq): (NodeSeq) ⇒ NodeSeq

    Wrap a function and make sure it's a NodeSeq => NodeSeq.

    Wrap a function and make sure it's a NodeSeq => NodeSeq. Much easier than explicitly casting the first parameter

    f

    the function

    returns

    a NodeSeq => NodeSeq

    Definition Classes
    package

Deprecated Value Members

  1. val ActorPing: net.liftweb.util.Schedule.type

    Changed the name ActorPing to Schedule

    Changed the name ActorPing to Schedule

    Definition Classes
    package
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3) Use Schedule

  2. object JSONParser extends SafeSeqParser with ImplicitConversions

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5) Use lift-json instead