public class StorageLink extends Link
Modifier and Type | Field and Description |
---|---|
static String |
DEVICE_ID_ATTRIBUTE_NAME |
static String |
KIND_IDENTIFIER_DEFAULT |
static String |
MOUNTPOINT_ATTRIBUTE_NAME |
static URI |
SCHEME_DEFAULT |
static String |
STATE_ATTRIBUTE_NAME |
static String |
TERM_DEFAULT |
SOURCE_ATTRIBUTE_NAME, TARGET_ATTRIBUTE_NAME
ID_ATTRIBUTE_NAME, TITLE_ATTRIBUTE_NAME
Constructor and Description |
---|
StorageLink(String id,
Kind kind)
Constructor.
|
StorageLink(String id,
Kind kind,
String title,
Model model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static List<Attribute> |
getDefaultAttributes()
Returns storagelink's default attributes.
|
static Kind |
getDefaultKind()
Returns storagelink's default kind instance.
|
String |
getDefaultKindIdentifier()
Returns storagelink's default identifier
'http://schemas.ogf.org/occi/infrastructure#storagelink'
|
String |
getDeviceId()
Returns storage link's device id (attribute occi.storagelink.deviceid).
|
String |
getMountpoint()
Returns storage link's mountpoint (attribute
occi.storagelink.mountpoint).
|
String |
getState()
Returns storage link's state (attribute occi.storagelink.state).
|
void |
setDeviceId(String id)
Sets storage link's device id.
|
void |
setMountpoint(String mountpoint)
Sets storage link's mountpoint
|
void |
setState(StorageLinkState state)
Sets storage link's state.
|
void |
setState(String stateName)
Sets storage link's state.
|
getRelation, getSource, getTarget, setRelation, setSource, setSource, setTarget, setTarget, toHeaders, toInlineHeaders, toInlineText, toJSON, toText
addAttribute, addAttributes, addMixin, addMixins, attributesToHeaders, attributesToOneLineText, attributesToPrefixText, clearAttributes, clearMixins, compareTo, containsAttribute, containsAttribute, containsMixin, containsMixin, equals, getAttributes, getId, getIdentifier, getKind, getMixin, getMixins, getModel, getTitle, getValue, getValue, hashCode, removeAttribute, removeMixin, setId, setKind, setModel, setTitle, toString
public static final String DEVICE_ID_ATTRIBUTE_NAME
public static final String MOUNTPOINT_ATTRIBUTE_NAME
public static final String STATE_ATTRIBUTE_NAME
public static final URI SCHEME_DEFAULT
public static final String TERM_DEFAULT
public static final String KIND_IDENTIFIER_DEFAULT
public StorageLink(String id, Kind kind, String title, Model model) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- storage link's kind. Cannot be null.title
- occi.core.title attributemodel
- storage link's modelInvalidAttributeValueException
- in case of invalid id or title
valuepublic StorageLink(String id, Kind kind) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- storage link's kind. Cannot be null.InvalidAttributeValueException
- in case of invalid id valuepublic String getDeviceId()
public void setDeviceId(String id) throws InvalidAttributeValueException
id
- storage link's device idInvalidAttributeValueException
- in case value for devide id is
invalidpublic String getMountpoint()
public void setMountpoint(String mountpoint) throws InvalidAttributeValueException
mountpoint
- storage link's mountpointInvalidAttributeValueException
- in case value for moutnpoint is
invalidpublic String getState()
public void setState(StorageLinkState state) throws InvalidAttributeValueException
state
- storage link's state. Cannot be null.InvalidAttributeValueException
- in case value for state is invalidpublic void setState(String stateName) throws InvalidAttributeValueException
stateName
- storage link's stateInvalidAttributeValueException
- in case value for state is invalidpublic String getDefaultKindIdentifier()
getDefaultKindIdentifier
in class Link
public static List<Attribute> getDefaultAttributes()
public static Kind getDefaultKind()
Copyright © 2016. All Rights Reserved.