public class IPNetworkInterface extends NetworkInterface
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_ATTRIBUTE_NAME |
static String |
ALLOCATION_ATTRIBUTE_NAME |
static String |
GATEWAY_ATTRIBUTE_NAME |
static String |
MIXIN_IDENTIFIER_DEFAULT |
static URI |
SCHEME_DEFAULT |
static String |
TERM_DEFAULT |
INTERFACE_ATTRIBUTE_NAME, KIND_IDENTIFIER_DEFAULT, MAC_ATTRIBUTE_NAME, STATE_ATTRIBUTE_NAME
SOURCE_ATTRIBUTE_NAME, TARGET_ATTRIBUTE_NAME
ID_ATTRIBUTE_NAME, TITLE_ATTRIBUTE_NAME
Constructor and Description |
---|
IPNetworkInterface(String id,
Kind kind)
Constructor.
|
IPNetworkInterface(String id,
Kind kind,
String title,
Model model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Returns ipnetwork interface's address (attribute
occi.networkinterface.address).
|
String |
getAllocation()
Returns ipnetwork interface's allocation (attribute
occi.networkinterface.allocation).
|
static List<Attribute> |
getDefaultAttributes()
Returns ipnetworkinterface's default attributes.
|
String |
getDefaultKindIdentifier()
Returns ipnetworkinterface's default identifier
'http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface'
|
static Mixin |
getDefaultMixin()
Returns ipnetworkinterface's default mixin instance.
|
String |
getGateway()
Returns ipnetwork interface's gateway (attribute
occi.networkinterface.gateway).
|
void |
setAddress(String address)
Sets ipnetwork interface's address.
|
void |
setAllocation(Allocation allocation)
Sets ipnetwork interface's allocation.
|
void |
setAllocation(String allocationName)
Sets ipnetwork interface's allocation.
|
void |
setGateway(String gateway)
Sets ipnetwork interface's gateway
|
getDefaultKind, getMac, getNetworkInterface, getState, setMac, setNetworkInterface, setState, setState
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 ADDRESS_ATTRIBUTE_NAME
public static final String GATEWAY_ATTRIBUTE_NAME
public static final String ALLOCATION_ATTRIBUTE_NAME
public static final URI SCHEME_DEFAULT
public static final String TERM_DEFAULT
public static final String MIXIN_IDENTIFIER_DEFAULT
public IPNetworkInterface(String id, Kind kind, String title, Model model) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- ipnetwork interface's kind. Cannot be null.title
- occi.core.title attributemodel
- network interface's modelInvalidAttributeValueException
- in case of invalid id or title
valuepublic IPNetworkInterface(String id, Kind kind) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- ipnetwork interface's kind. Cannot be null.InvalidAttributeValueException
- in case of invalid id valuepublic String getAddress()
public void setAddress(String address) throws InvalidAttributeValueException
address
- ipnetwork interface's addressInvalidAttributeValueException
- in case value for address is
invalidpublic String getGateway()
public void setGateway(String gateway) throws InvalidAttributeValueException
gateway
- ipnetwork interface's gatewayInvalidAttributeValueException
- in case value for gateway is
invalidpublic String getAllocation()
public void setAllocation(Allocation allocation) throws InvalidAttributeValueException
allocation
- ipnetwork interface's allocation. Cannot be null.InvalidAttributeValueException
- in case value for allocation is
invalidpublic void setAllocation(String allocationName) throws InvalidAttributeValueException
allocationName
- ipnetwork interface's allocation. Cannot be null.InvalidAttributeValueException
- in case value for allocation is
invalidpublic String getDefaultKindIdentifier()
getDefaultKindIdentifier
in class NetworkInterface
public static List<Attribute> getDefaultAttributes()
public static Mixin getDefaultMixin()
Copyright © 2016. All Rights Reserved.