public interface HasEnabled extends Document
Document
implementations that implement the
isEnabled()
method.Modifier and Type | Field and Description |
---|---|
static String |
ENABLED
The key of the
enabled property. |
static boolean |
ENABLED_DEFAULT
If a
Document should be considered true if it is not
specified in the map. |
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
static final String ENABLED
enabled
property.static final boolean ENABLED_DEFAULT
Document
should be considered true
if it is not
specified in the map.default boolean isEnabled()
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 © 2018 Speedment, Inc.. All rights reserved.