public class DefaultConstraint extends org.onosproject.yang.model.InnerModelObject implements Constraint, org.onosproject.yang.model.MultiInstanceObject<ConstraintKeys>
valueLeafFlags identify the leafs whose value are explicitly set Applicable in protocol edit and query operation.
org.onosproject.yang.model.ModelObject.ModelObjectTypeConstraint.LeafIdentifier| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends PlacementDiversity> |
constraintType |
protected Target |
target |
protected BitSet |
valueLeafFlags |
| Constructor and Description |
|---|
DefaultConstraint()
Creates an instance of defaultConstraint.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends PlacementDiversity> |
constraintType()
Returns the attribute constraintType.
|
void |
constraintType(Class<? extends PlacementDiversity> constraintType)
Sets the attribute constraintType.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isLeafValueSet(Constraint.LeafIdentifier leaf)
Checks if the leaf value is set.
|
Target |
target()
Returns the attribute target.
|
void |
target(Target target)
Sets the attribute target.
|
String |
toString() |
BitSet |
valueLeafFlags()
Returns the attribute valueLeafFlags.
|
protected Class<? extends PlacementDiversity> constraintType
protected BitSet valueLeafFlags
protected Target target
public DefaultConstraint()
public Class<? extends PlacementDiversity> constraintType()
ConstraintconstraintType in interface Constraintpublic BitSet valueLeafFlags()
ConstraintvalueLeafFlags in interface Constraintpublic Target target()
Constrainttarget in interface Constraintpublic void constraintType(Class<? extends PlacementDiversity> constraintType)
ConstraintconstraintType in interface ConstraintconstraintType - value of constraintTypepublic void target(Target target)
Constrainttarget in interface Constrainttarget - value of targetpublic boolean isLeafValueSet(Constraint.LeafIdentifier leaf)
ConstraintisLeafValueSet in interface Constraintleaf - leaf whose value status needs to checkedCopyright © 2017. All rights reserved.