public interface HasEnabled extends Document
Document
implementations that implement the
isEnabled()
method.Modifier and Type | Method and Description |
---|---|
default boolean |
isEnabled()
Returns if this document is enabled.
|
static HasEnabled |
of(Document document)
Returns a wrapper of the specified document that implements the
HasEnabled trait. |
static boolean |
test(Document doc)
|
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, getParent, put
default boolean isEnabled()
HasEnableUtil.ENABLED
key.true
if enabled, else false
static boolean test(Document doc)
doc
- the document to testtrue
if enabled, else false
static HasEnabled of(Document document)
HasEnabled
trait. If the specified document already implements the
trait, it is returned unwrapped.document
- the document to wrapCopyright © 2019 Speedment, Inc.. All rights reserved.