public interface HasAlias extends Document, HasName
Document
implementations that implement the
getAlias()
method. If a Document
implements this trait, it
is also expected to implement the HasName
trait.Modifier and Type | Field and Description |
---|---|
static String |
ALIAS
The key of the
alias property. |
Modifier and Type | Method and Description |
---|---|
default Optional<String> |
getAlias()
Returns the alias of the specified document.
|
default String |
getJavaName()
Returns the java name of this
Document . |
static HasAlias |
of(Document document)
Returns a wrapper of the specified document that implements the
HasAlias trait. |
mainInterface
ancestors, children, children, get, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getData, getParent, put
static final String ALIAS
alias
property.default Optional<String> getAlias()
ALIAS
key.Optional
if none was specifieddefault String getJavaName()
Document
. If an alias is specified
by getAlias()
, it will be returned, but if no alias exist the
database name returned by HasName.getName()
will be used.Copyright © 2017 Speedment, Inc.. All rights reserved.