com.bea.b2b.protocol.rosettanet.messaging
Class RNPart

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.bea.b2b.protocol.messaging.XMLPart
              |
              +--com.bea.b2b.protocol.messaging.BusinessDocument
                    |
                    +--com.bea.b2b.protocol.rosettanet.messaging.RNPart
Direct Known Subclasses:
PreamblePart, ServiceContentPart, ServiceHeaderPart

public abstract class RNPart
extends BusinessDocument

The RNPart class is an abstract class that supports additional processing for various XML-based RosettaNet parts.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Method Summary
 java.lang.String getAsString()
          Gets the RosettaNet part as a String.
 java.lang.String getNodeValue(java.lang.String expression)
          Gets the value of a document node using the specified XPath expression to locate the node.
 void setNodeValue(java.lang.String expression, java.lang.String value)
          Sets the value of a document node using the specified XPath expression to locate the node.
 
Methods inherited from class com.bea.b2b.protocol.messaging.BusinessDocument
getContentType, getDocument, read, setDocument
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAsString

public java.lang.String getAsString()
Gets the RosettaNet part as a String.

getNodeValue

public java.lang.String getNodeValue(java.lang.String expression)
Gets the value of a document node using the specified XPath expression to locate the node. If multiple nodes match the XPath expression, then only the first node will be used.

Returns:
String - Document node value.

setNodeValue

public void setNodeValue(java.lang.String expression,
                         java.lang.String value)
                  throws org.xml.sax.SAXException
Sets the value of a document node using the specified XPath expression to locate the node.

Parameters:
expression - - XPath expression.
value - Document node value.