|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.ldif.LdifControl
public class LdifControl
The LdifControl class stores a control defined for an entry found in a LDIF file.
| Field Summary | |
|---|---|
protected byte[] |
value
Optional control value |
| Constructor Summary | |
|---|---|
LdifControl()
Create a new Control |
|
LdifControl(String oid)
Create a new Control |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getOid()
|
byte[] |
getValue()
|
int |
hashCode()
|
boolean |
hasValue()
|
boolean |
isCritical()
Tells if the control is critical or not. |
void |
readExternal(ObjectInput in)
|
void |
setCritical(boolean criticality)
Sets the critical flag which determines whether or not this control is critical for the correct operation of a request or response message. |
void |
setValue(byte[] value)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected byte[] value
| Constructor Detail |
|---|
public LdifControl()
public LdifControl(String oid)
oid - OID of the created control| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getOid()
getOid in interface Controlpublic boolean isCritical()
isCritical in interface Controltrue if the control is critical, false otherwisepublic void setCritical(boolean criticality)
setCritical in interface Controlcriticality - true if the control is critical false otherwise.public byte[] getValue()
public void setValue(byte[] value)
public boolean hasValue()
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||