public class IPNetwork extends Network
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 |
KIND_IDENTIFIER_DEFAULT, LABEL_ATTRIBUTE_NAME, STATE_ATTRIBUTE_NAME, VLAN_ATTRIBUTE_NAME
SUMMARY_ATTRIBUTE_NAME
ID_ATTRIBUTE_NAME, TITLE_ATTRIBUTE_NAME
Constructor and Description |
---|
IPNetwork(String id,
Kind kind)
Constructor.
|
IPNetwork(String id,
Kind kind,
String title,
Model model,
String summary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Returns ipnetwork's address (attribute occi.network.address).
|
String |
getAllocation()
Returns ipnetwork's allocation (attribute occi.network.allocation).
|
static List<Attribute> |
getDefaultAttributes()
Returns ipnetwork's default attributes.
|
String |
getDefaultKindIdentifier()
Returns ipnetwork's default identifier
'http://schemas.ogf.org/occi/infrastructure/network#ipnetworking'
|
static Mixin |
getDefaultMixin()
Returns ipnetwork's default mixin instance.
|
String |
getGateway()
Returns ipnetwork's gateway (attribute occi.network.gateway).
|
void |
setAddress(String address)
Sets ipnetwork's address.
|
void |
setAllocation(Allocation allocation)
Sets ipnetwork's allocation.
|
void |
setAllocation(String allocationName)
Sets ipnetwork's allocation.
|
void |
setGateway(String gateway)
Sets ipnetwork's gateway
|
getDefaultKind, getLabel, getState, getVlan, setLabel, setState, setState, setVlan, setVlan
addAction, addActions, addLink, addLinks, clearActions, clearLinks, containsAction, containsAction, containsLink, containsLink, containsLink, getAction, getActions, getLinks, getLinks, getLinks, getLocation, getSummary, removeAction, removeLink, setSummary, toHeaders, toJSON, toString, 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
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 IPNetwork(String id, Kind kind, String title, Model model, String summary) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- ipnetwork's kind. Cannot be null.title
- occi.core.title attributemodel
- ipnetwork's modelsummary
- ipnetwork's summaryInvalidAttributeValueException
- in case of invalid id, title or
summary valuepublic IPNetwork(String id, Kind kind) throws InvalidAttributeValueException
id
- occi.core.id attribute. Cannot be null.kind
- ipnetwork's kind. Cannot be null.InvalidAttributeValueException
- in case of invalid id valuepublic String getAddress()
public void setAddress(String address) throws InvalidAttributeValueException
address
- ipnetwork's addressInvalidAttributeValueException
- in case value for address is
invalidpublic String getGateway()
public void setGateway(String gateway) throws InvalidAttributeValueException
gateway
- ipnetwork's gatewayInvalidAttributeValueException
- in case value for gateway is
invalidpublic String getAllocation()
public void setAllocation(Allocation allocation) throws InvalidAttributeValueException
allocation
- ipnetwork's allocation. Cannot be null.InvalidAttributeValueException
- in case value for allocation is
invalidpublic void setAllocation(String allocationName) throws InvalidAttributeValueException
allocationName
- ipnetwork's allocation. Cannot be null.InvalidAttributeValueException
- in case value for allocation is
invalidpublic String getDefaultKindIdentifier()
getDefaultKindIdentifier
in class Network
public static List<Attribute> getDefaultAttributes()
public static Mixin getDefaultMixin()
Copyright © 2016. All Rights Reserved.