|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.parser.ParserImpl
com.ibm.di.parser.xml.XMLParser2
com.ibm.di.parser.SPMLv2Parser
public class SPMLv2Parser
A TDI Parser class for reading and writing Entries in SPMLv2 DSMLv2 Profile format.
| Field Summary | |
|---|---|
static String |
ATTR_NAME_ATTR_DESCRIPTIONS
Name of the SPML attributeDescription attribute. |
static String |
ATTR_NAME_CONTAINERID
Name of the SPML containerID attribute. |
static String |
ATTR_NAME_CONTAINERID_TARGETID
Name of the SPML containerID.targetID attribute. |
static String |
ATTR_NAME_ERROR_CODE
Name of the SPML errorCode attribute. |
static String |
ATTR_NAME_ERROR_MESSAGES
Name of the SPML errorMessages attribute. |
static String |
ATTR_NAME_FILTER
Name of the SPML filter attribute. |
static String |
ATTR_NAME_PSO_TARGETID
Name of the SPML pso.targetID attribute. |
static String |
ATTR_NAME_PSOID
Name of the SPML psoID attribute. |
static String |
ATTR_NAME_REQUESTID
Name of the SPML requestID attribute. |
static String |
ATTR_NAME_RESULT_ENTRIES
Name of the SPML resultEntries attribute. |
static String |
ATTR_NAME_SEARCH_SCOPE
Name of the SPML scope attribute. |
static String |
ATTR_NAME_SPML_OP_TYPE
Name of the SPML operation type attribute. |
static String |
ATTR_NAME_SPML_OPERATION
Name of the SPML operation attribute. |
static String |
ATTR_NAME_STATUS
Name of the SPML status attribute. |
static String |
ATTR_NAME_SUBSTRINGS_ANY
Name of the SPML filter.substrings.any attribute. |
static String |
ATTR_NAME_SUBSTRINGS_FINAL
Name of the SPML filter.substrings.final attribute. |
static String |
ATTR_NAME_SUBSTRINGS_INITIAL
Name of the SPML filter.substrings.initial attribute. |
static String |
ATTR_NAME_SUBSTRINGS_NAME
Name of the SPML filter.substrings.name attribute. |
static String |
ATTR_NAME_TARGETID
Name of the SPML targetID attribute. |
static String |
OP_TYPE_REQUEST
Request type of the operation. |
static String |
OP_TYPE_RESPONSE
Response type of the operation. |
static String |
OPERATION_ADD
Add operation. |
static String |
OPERATION_DELETE
Delete operation. |
static String |
OPERATION_LOOKUP
Lookup operation. |
static String |
OPERATION_MODIFY
Modify operation. |
static String |
OPERATION_SEARCH
Search operation. |
static String |
PARAMETER_BINARY_ATTRIBUTES
binaryAttributes config parameter name. |
static String |
XML_ATTR_DNATTR
Name of the XML attribute holding the dnAttributes value. |
static String |
XML_ATTR_NAME
Name of the XML attribute holding the name of the filter item. |
static String |
XML_ATTR_RULE
Name of the XML attribute holding the matchingRule value. |
static String |
XML_TAG_AND
Name of the XML tag containing the and filter items. |
static String |
XML_TAG_ANY
Name of the XML tag containing the any filter items. |
static String |
XML_TAG_APPROXMATCH
Name of the XML tag containing the approxMatch filter items. |
static String |
XML_TAG_EQUALITYMATCH
Name of the XML tag containing the equalityMatch filter items. |
static String |
XML_TAG_EXTMATCH
Name of the XML tag containing the extensibleMatch filter items. |
static String |
XML_TAG_FINAL
Name of the XML tag containing the final filter item. |
static String |
XML_TAG_GREATER
Name of the XML tag containing the greaterOrEqual filter items. |
static String |
XML_TAG_INITIAL
Name of the XML tag containing the initial filter items. |
static String |
XML_TAG_LESS
Name of the XML tag containing the lessOrEqual filter items. |
static String |
XML_TAG_NOT
Name of the XML tag containing the not filter items. |
static String |
XML_TAG_OR
Name of the XML tag containing the or filter items. |
static String |
XML_TAG_PRESENT
Name of the XML tag containing the present filter items. |
static String |
XML_TAG_SUBSTRINGS
Name of the XML tag containing the substrings filter item. |
static String |
XML_TAG_VALUE
Name of the XML attribute holding the value of the filter item. |
| Fields inherited from class com.ibm.di.parser.xml.XMLParser2 |
|---|
attrsDeclaration, charEncoding, coalescing, currentEntryAsXML, currentEntryAsXMLString, DEFAULT_ENCODING, DUMMY_ROOT_NAME, entryTag, firstWriteStart, indentOutput, nsMap, nsTracker, skipXMLOnReading, skipXMLOnWriting, standaloneRoot, valueTag, wrapUnwrapEntry, xmlVersion, xPath, xPathStr, xsdPath |
| Fields inherited from class com.ibm.di.parser.ParserImpl |
|---|
_debug, myConfiguration |
| Constructor Summary | |
|---|---|
SPMLv2Parser()
|
|
| Method Summary | |
|---|---|
void |
closeParser()
Closes the parser |
void |
flush()
Flushes the parser's outputstream or writer |
String |
getVersion()
Version information. |
protected void |
initInput()
Initializes the Input. |
protected void |
initOutput()
Initializes the Output. |
void |
initParser()
Initializes the Parser |
Entry |
readEntry()
Reads a request or response from a batch message |
void |
writeEntry(Entry aEntry)
Writes down a request or response to a batch message |
| Methods inherited from class com.ibm.di.parser.xml.XMLParser2 |
|---|
getCurrentEntryAsXMLStream, getCurrentEntryAsXMLString, getCurrentEntryPath, getLogger, getSchemaLocationFromXML, querySchema |
| Methods inherited from class com.ibm.di.parser.ParserImpl |
|---|
debug, debugMode, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.di.parser.ParserInterface |
|---|
getContext, getDebug, getParam, getParser, getReader, getWriter, isDeltaSupported, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
| Field Detail |
|---|
public static final String PARAMETER_BINARY_ATTRIBUTES
binaryAttributes config parameter name.
public static final String ATTR_NAME_SPML_OP_TYPE
public static final String OP_TYPE_REQUEST
Request type of the operation.
public static final String OP_TYPE_RESPONSE
Response type of the operation.
public static final String ATTR_NAME_SPML_OPERATION
public static final String OPERATION_ADD
Add operation.
public static final String OPERATION_SEARCH
Search operation.
public static final String OPERATION_MODIFY
Modify operation.
public static final String OPERATION_DELETE
Delete operation.
public static final String OPERATION_LOOKUP
Lookup operation.
public static final String ATTR_NAME_CONTAINERID
public static final String ATTR_NAME_CONTAINERID_TARGETID
public static final String ATTR_NAME_SEARCH_SCOPE
public static final String ATTR_NAME_REQUESTID
public static final String ATTR_NAME_TARGETID
public static final String ATTR_NAME_RESULT_ENTRIES
public static final String ATTR_NAME_PSOID
public static final String ATTR_NAME_PSO_TARGETID
public static final String ATTR_NAME_STATUS
public static final String ATTR_NAME_ERROR_MESSAGES
public static final String ATTR_NAME_ERROR_CODE
public static final String ATTR_NAME_ATTR_DESCRIPTIONS
public static final String ATTR_NAME_SUBSTRINGS_NAME
public static final String ATTR_NAME_SUBSTRINGS_INITIAL
public static final String ATTR_NAME_SUBSTRINGS_ANY
public static final String ATTR_NAME_SUBSTRINGS_FINAL
public static final String ATTR_NAME_FILTER
Note: this is a hierarchical attribute.
public static final String XML_ATTR_NAME
public static final String XML_ATTR_DNATTR
public static final String XML_ATTR_RULE
public static final String XML_TAG_VALUE
public static final String XML_TAG_SUBSTRINGS
public static final String XML_TAG_FINAL
public static final String XML_TAG_INITIAL
public static final String XML_TAG_ANY
public static final String XML_TAG_EQUALITYMATCH
public static final String XML_TAG_PRESENT
public static final String XML_TAG_GREATER
public static final String XML_TAG_LESS
public static final String XML_TAG_EXTMATCH
public static final String XML_TAG_APPROXMATCH
public static final String XML_TAG_AND
public static final String XML_TAG_OR
public static final String XML_TAG_NOT
| Constructor Detail |
|---|
public SPMLv2Parser()
| Method Detail |
|---|
public void initParser()
throws Exception
initParser in interface ParserInterfaceinitParser in class XMLParser2Exception - if the initialization fails
protected void initInput()
throws Exception
initInput in class XMLParser2Exception - - in case of a read error occurs.ParserImpl.setInputStream(java.io.Reader)
protected void initOutput()
throws Exception
initOutput in class XMLParser2Exception - - in case of write error occurs.
public Entry readEntry()
throws Exception
readEntry in interface ParserInterfacereadEntry in class XMLParser2Exception - if the SPML could not be parsed correctly or any other error
occurs.
public void writeEntry(Entry aEntry)
throws Exception
writeEntry in interface ParserInterfacewriteEntry in class XMLParser2aEntry - TDI Entry that presents the request/response that is to be
written to a batch message
Exception - if some attributes are missing.public String getVersion()
getVersion in interface VersionInfoInterfacegetVersion in class XMLParser2
public void closeParser()
throws Exception
closeParser in interface ParserInterfacecloseParser in class XMLParser2Exception - if an error occurs.public void flush()
flush in interface ParserInterfaceflush in class ParserImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||