|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.Plugin
com.novell.emframe.dev.DataHandler
com.novell.emframe.dev.DataHandlerHelper
Abstract class extended from DataHandler that handles the data from a particular attribute and contains
some XML helper methods. All Strings are XML data containing the data.
| Constructor Summary | |
DataHandlerHelper()
|
|
| Method Summary | |
java.lang.String |
getString(java.lang.Object theObj,
java.lang.String attrName,
TaskContext context)
Returns the String value of a particular attribute in XML format. |
void |
setString(java.lang.Object theObj,
java.lang.String attributeName,
java.lang.String value,
TaskContext context)
Sets the String value of a particular attribute in XML format. |
protected abstract void |
valueComponentToXml(ValueComponent vc,
java.lang.StringBuffer resultValue,
java.lang.String attrName,
Syntax syntax)
Abstract class that outputs the data in valueComponent to the StringBuffer in XML form. |
protected abstract ValueComponent |
xmlToValueComponent(AttributeDefinition attributeDefinition,
org.jdom.Element element,
TaskContext context)
Abstract class that given the xml element, creates a ValueComponent. |
| Methods inherited from class com.novell.emframe.dev.DataHandler |
getOperationAsString, getOperationType |
| Methods inherited from class com.novell.emframe.dev.Plugin |
init, isPluginAvailable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataHandlerHelper()
| Method Detail |
public java.lang.String getString(java.lang.Object theObj,
java.lang.String attrName,
TaskContext context)
throws eDirAccessServiceException
getString in class DataHandlertheObj - ObjectEntry representing the object in the directoryattrName - String containing the name of the attributecontext - Plug-in context
eDirAccessServiceException - on error reading from the attributesetString(java.lang.Object, java.lang.String, java.lang.String, com.novell.emframe.dev.TaskContext)public void setString(java.lang.Object theObj,
java.lang.String attributeName,
java.lang.String value,
TaskContext context)
throws eDirAccessServiceException
setString in class DataHandlertheObj - ObjectEntry representing the object in the directoryattributeName - String containing the name of the attributevalue - String containing an XML representation of the value of the attributecontext - Plug-in context
eDirAccessServiceException - on error setting the attributegetString(java.lang.Object, java.lang.String, com.novell.emframe.dev.TaskContext)protected abstract void valueComponentToXml(ValueComponent vc,
java.lang.StringBuffer resultValue,
java.lang.String attrName,
Syntax syntax)
throws eDirAccessServiceException
vc - ValueComponent that represents the value of an attributeresultValue - StringBuffer to write the data toattrName - String containing the attribute namesyntax - String containg the attribute syntax
eDirAccessServiceExceptionprotected abstract ValueComponent xmlToValueComponent(AttributeDefinition attributeDefinition,
org.jdom.Element element,
TaskContext context)
throws java.lang.Exception
attributeDefinition - AttributeDefinition containg information about attribute name and syntaxelement - XML Element to read the valuecontext - TaskContext of the plug-in
java.lang.Exception
ComponentCreationException
IncompatibleComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||