public abstract class AbstractControl extends Object implements Control
Control
interface with storage for
the OID and the criticality properties. When the codec factory service
does not have specific control factories available, hence the control is
unrecognized, it creates instances of this control for them.Constructor and Description |
---|
AbstractControl(String oid)
Creates a Control with a specific OID.
|
AbstractControl(String oid,
boolean criticality)
Creates a Control with a specific OID, and criticality set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getOid()
Get the OID
|
int |
hashCode() |
boolean |
isCritical()
Get the criticality
|
void |
setCritical(boolean criticality)
Set the criticality
|
String |
toString()
Return a String representing a Control
|
public AbstractControl(String oid)
oid
- The OID of this Control.public AbstractControl(String oid, boolean criticality)
oid
- The OID of this Control.criticality
- true if this Control is critical, false otherwise.public boolean isCritical()
isCritical
in interface Control
true
if the criticality flag is true.public void setCritical(boolean criticality)
setCritical
in interface Control
criticality
- The criticality valuepublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.