public class NetworkInterface extends Link
Modifier and Type | Field and Description |
---|---|
static String |
INTERFACE_ATTRIBUTE_NAME |
static String |
KIND_IDENTIFIER_DEFAULT |
static String |
MAC_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 |
---|
NetworkInterface(String id,
Kind kind)
Constructor.
|
NetworkInterface(String id,
Kind kind,
String title,
Model model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static List<Attribute> |
getDefaultAttributes()
Returns networkinterface's default attributes.
|
static Kind |
getDefaultKind()
Returns networkinterface's default kind instance.
|
String |
getDefaultKindIdentifier()
Returns networkinterface's default identifier
'http://schemas.ogf.org/occi/infrastructure#networkinterface'
|
String |
getMac()
Returns network interface's mac address.
|
String |
getNetworkInterface()
Returns network interface's interface (attribute
occi.networkinterface.interface).
|
String |
getState()
Returns network interface's state.
|
void |
setMac(String mac)
Sets network interface's mac address
|
void |
setNetworkInterface(String networkInterface)
Sets network interface's interface
|
void |
setState(NetworkState state)
Sets network interface's state.
|
void |
setState(String stateName)
Sets network interface'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 INTERFACE_ATTRIBUTE_NAME
public static final String MAC_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 NetworkInterface(String id, Kind kind, String title, Model model) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- network interface's kind. Cannot be null.title
- occi.core.title attributemodel
- network interface's modelInvalidAttributeValueException
- in case of invalid id or title
valuepublic NetworkInterface(String id, Kind kind) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- network interface's kind. Cannot be null.InvalidAttributeValueException
- in case of invalid id valuepublic String getNetworkInterface()
public void setNetworkInterface(String networkInterface) throws InvalidAttributeValueException
networkInterface
- network interface's interfaceInvalidAttributeValueException
- in case value for interface is
invalidpublic String getMac()
public void setMac(String mac) throws InvalidAttributeValueException
mac
- network interface's mac addressInvalidAttributeValueException
- in case value for mac address is
invalidpublic String getState()
public void setState(NetworkState state) throws InvalidAttributeValueException
state
- network interface's state. Cannot be null.InvalidAttributeValueException
- in case value for state is invalidpublic void setState(String stateName) throws InvalidAttributeValueException
stateName
- network interface's state. Cannot be null.InvalidAttributeValueException
- 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.