public final class ContentReferenceId extends BaseId
ContentReference
.Modifier and Type | Field and Description |
---|---|
static ContentReferenceId |
UNDEFINED
A type-safe and null-safe undefined any content reference id.
|
UNDEFINED_VALUE
Modifier and Type | Method and Description |
---|---|
static ContentReferenceId |
from(Id id)
Returns a type-safe content reference id for the specified id or null if the given id is null.
|
static ContentReferenceId |
from(Identifiable<?> identifiable)
Returns a type-safe content reference id derived from the id of the specified identifiable or null if the
id of the identifiable is null.
|
static ContentReferenceId |
get(String value)
Returns a type-safe content reference id for the specified value.
|
static ContentReferenceId |
nullSafeGet(String value)
Returns a type-safe content reference id for the specified value or null if the given value is null.
|
ContentReferenceId |
withValue(String value)
Returns a new content reference id with the given value.
|
public static final ContentReferenceId UNDEFINED
public ContentReferenceId withValue(String value)
public static ContentReferenceId get(String value)
value
- the value that represents the content reference idpublic static ContentReferenceId nullSafeGet(String value)
value
- the value that represents the content reference id or nullpublic static ContentReferenceId from(Id id)
id
- the id from which to derive the content reference idpublic static ContentReferenceId from(Identifiable<?> identifiable)
identifiable
- the identifiable whose id is taken to derive the content reference idCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.