|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.ldapadapter.appconn.STCValueImpl
public class STCValueImpl
This class is used as a container for a single value of an attribute's value
Constructor Summary | |
---|---|
protected |
STCValueImpl()
|
protected |
STCValueImpl(java.lang.Object aVal)
Creates a new instance of STCValue |
Method Summary | |
---|---|
byte[] |
getByteValue()
Retrieves the value from the value Object as a byte array |
java.lang.String |
getStringValue()
Retrieves the String value from the value Object |
java.lang.Object |
getValue()
Returns the value from the value Object as an Object |
boolean |
isByteArray()
Checks whether the value is a byte array |
boolean |
isString()
Checks whether the value is a String |
void |
reset()
Method to reset the values |
void |
setByteValue(byte[] byteVal)
Sets the byte value for the value Object |
void |
setStringValue(java.lang.String strVal)
Sets the String value for the value Object |
void |
setValue(java.lang.Object aVal)
Sets the value for the value Object as an Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected STCValueImpl()
protected STCValueImpl(java.lang.Object aVal)
val
- the value as an ObjectMethod Detail |
---|
public void reset()
STCValue
reset
in interface STCValue
public boolean isByteArray() throws LDAPApplicationException
isByteArray
in interface STCValue
LDAPApplicationException
- if the type of the value cannot be determinedpublic boolean isString() throws LDAPApplicationException
isString
in interface STCValue
LDAPApplicationException
- if the type of the value cannot be determinedpublic java.lang.String getStringValue() throws LDAPApplicationException
getStringValue
in interface STCValue
LDAPApplicationException
- if the value is not of type String or if there
is no valuepublic void setStringValue(java.lang.String strVal)
setStringValue
in interface STCValue
strVal
- the String value of the value Objectpublic byte[] getByteValue() throws LDAPApplicationException
getByteValue
in interface STCValue
LDAPApplicationException
- if the value is not of type byte array or if there
is no valuepublic void setByteValue(byte[] byteVal)
setByteValue
in interface STCValue
byteVal
- the String value of the value Objectpublic void setValue(java.lang.Object aVal) throws LDAPApplicationException
setValue
in interface STCValue
val
- the value of the value Object as an Object
LDAPApplicationException
- if the value is not of one of the supported typespublic java.lang.Object getValue() throws LDAPApplicationException
getValue
in interface STCValue
LDAPApplicationException
- if there is no value
|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |