Package org.opendaylight.neutron.spi
Class NeutronObject<T extends NeutronObject<T>>
- java.lang.Object
-
- org.opendaylight.neutron.spi.NeutronID
-
- org.opendaylight.neutron.spi.NeutronObject<T>
-
- All Implemented Interfaces:
Serializable
,INeutronObject<T>
- Direct Known Subclasses:
NeutronBaseAttributes
,NeutronFloatingIp
,NeutronLoadBalancerHealthMonitor
,NeutronLoadBalancerPoolMember
,NeutronMeteringLabelRule
,NeutronQosBandwidthLimitRule
,NeutronQosDscpMarkingRule
,NeutronQosMinimumBandwidthRule
,NeutronRouterInterface
,NeutronSecurityRule
public abstract class NeutronObject<T extends NeutronObject<T>> extends NeutronID implements INeutronObject<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NeutronObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
extractField(String field, T ans)
T
extractFields(List<String> fields)
This method copies selected fields from the object and returns them as a new object, suitable for marshaling.String
getProjectID()
Long
getRevisionNumber()
String
getTenantID()
void
initDefaults()
void
setProjectID(String projectID)
void
setRevisionNumber(Long revisionNumber)
void
setTenantID(String tenantID)
void
setTenantID(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid tenantID)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.neutron.spi.INeutronObject
getID, setID
-
-
-
-
Method Detail
-
getTenantID
public String getTenantID()
- Specified by:
getTenantID
in interfaceINeutronObject<T extends NeutronObject<T>>
-
setTenantID
public void setTenantID(String tenantID)
- Specified by:
setTenantID
in interfaceINeutronObject<T extends NeutronObject<T>>
-
setTenantID
public void setTenantID(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid tenantID)
- Specified by:
setTenantID
in interfaceINeutronObject<T extends NeutronObject<T>>
-
setProjectID
public void setProjectID(String projectID)
- Specified by:
setProjectID
in interfaceINeutronObject<T extends NeutronObject<T>>
-
getProjectID
public String getProjectID()
- Specified by:
getProjectID
in interfaceINeutronObject<T extends NeutronObject<T>>
-
getRevisionNumber
public Long getRevisionNumber()
- Specified by:
getRevisionNumber
in interfaceINeutronObject<T extends NeutronObject<T>>
-
setRevisionNumber
public void setRevisionNumber(Long revisionNumber)
- Specified by:
setRevisionNumber
in interfaceINeutronObject<T extends NeutronObject<T>>
-
initDefaults
public void initDefaults()
- Specified by:
initDefaults
in interfaceINeutronObject<T extends NeutronObject<T>>
-
extractFields
public T extractFields(List<String> fields)
This method copies selected fields from the object and returns them as a new object, suitable for marshaling.- Specified by:
extractFields
in interfaceINeutronObject<T extends NeutronObject<T>>
- Parameters:
fields
- List of attributes to be extracted- Returns:
- an OpenStack Neutron object with only the selected fields populated
-
-