public abstract class DataHandlerHelper extends DataHandler
DataHandler that handles the data from a particular attribute and contains
some XML helper methods. All Strings are XML data containing the data.| Constructor and Description |
|---|
DataHandlerHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString(java.lang.Object theObj,
java.lang.String attrName,
MContext 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,
MContext 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,
MContext context)
Abstract class that given the xml element, creates a ValueComponent.
|
getOperationAsString, getOperationTypeinit, init, isPluginAvailable, isPluginAvailableprotected 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 syntaxeDirAccessServiceExceptionprotected abstract ValueComponent xmlToValueComponent(AttributeDefinition attributeDefinition, org.jdom.Element element, MContext context) throws java.lang.Exception
attributeDefinition - AttributeDefinition containg information about attribute name and syntaxelement - XML Element to read the valuecontext - MContext of the plug-injava.lang.ExceptionComponentCreationExceptionIncompatibleComponentExceptionpublic java.lang.String getString(java.lang.Object theObj,
java.lang.String attrName,
MContext context)
throws eDirAccessServiceException
getString in class DataHandlertheObj - ObjectEntry representing the object in the directoryattrName - String containing the name of the attributecontext - Plug-in contexteDirAccessServiceException - on error reading from the attributesetString(java.lang.Object, java.lang.String, java.lang.String, com.novell.emframe.dev.MContext)public void setString(java.lang.Object theObj,
java.lang.String attributeName,
java.lang.String value,
MContext 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 contexteDirAccessServiceException - on error setting the attributegetString(java.lang.Object, java.lang.String, com.novell.emframe.dev.MContext)
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.