com.americancoders.ebXML
Class From

java.lang.Object
  |
  +--com.americancoders.ebXML.From

class From
extends java.lang.Object

The From element identifies the Party which originated the message. It is a logical identifier, which MAY take the form of a URN. An example of this would be a DUNS number. The From element consists of a PartyId element.


Field Summary
(package private)  ValueTypeContext partyId
           
 
Constructor Summary
(package private) From()
           
 
Method Summary
 ValueTypeContext getPartyId()
          method to get PartyId
 java.lang.String getXML(int depth)
          method to build an XML string of this and its subordinate objects
 void setPartyId(ValueTypeContext inPartyId)
          method to set PartyId The PartyId element has a single attribute; context and a text value.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

partyId

ValueTypeContext partyId
Constructor Detail

From

From()
Method Detail

setPartyId

public void setPartyId(ValueTypeContext inPartyId)
method to set PartyId The PartyId element has a single attribute; context and a text value. The purpose of the context attribute is to provide a context for the text value of the PartyId element. The following fragment demonstrates usage of the From and To elements of the ebXMLHeader.
Parameters:
ValueTypeContext - inPartyId

getPartyId

public ValueTypeContext getPartyId()
method to get PartyId
Returns:
ValueTypeContext

getXML

public java.lang.String getXML(int depth)
method to build an XML string of this and its subordinate objects
Parameters:
int - depth - how many multiple of 4 spaces to add in front of text
Returns:
String - XML text