@Platform(value="linux") @Platform(value="windows") public abstract class EntityWithMetadata extends NamedEntity
Constructor and Description |
---|
EntityWithMetadata() |
Modifier and Type | Method and Description |
---|---|
abstract Section |
getMetadata()
Get metadata associated with this entity.
|
abstract void |
removeMetadata()
Removes metadata associated with the entity.
|
abstract void |
setMetadata(Section metadata)
Associate the entity with some metadata.
|
abstract void |
setMetadata(String id)
Associate the entity with some metadata.
|
compareTo, getDefinition, getName, getType, setDefinition, setType
equals, forceCreatedAt, forceUpdatedAt, getCreatedAt, getId, getUpdatedAt, hashCode, setCreatedAt, setUpdatedAt
isInitialized, isNone
public abstract Section getMetadata()
public abstract void setMetadata(Section metadata)
Calling this method will replace previously stored information.
metadata
- The Section
that should be associated
with this entity.public abstract void setMetadata(String id)
Calling this method will replace previously stored information.
id
- The id of the Section
that should be associated
with this entity.public abstract void removeMetadata()
Copyright © 2016. All rights reserved.