|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.addressing.ReferenceProperties
WS-Addressing wsa:ReferenceProperties implementation (an element of wsa:EndpointReference)
API inherited from SOAPElement can be used for setting properties. However, some methods are not supported, see methods javadoc.
Field Summary | |
static java.lang.String |
LOCAL_NAME
|
Fields inherited from interface org.systinet.wasp.addressing.ReferencePropertiesInternal |
NAMESPACE_URI_INTERNAL |
Constructor Summary | |
ReferenceProperties()
Constructs new empty ReferenceProperties |
Method Summary | |
SOAPElement |
addAttribute(Name name,
java.lang.String value)
Not supported, always throws UnsupportedOperationException |
SOAPElement |
addChildElement(Name name)
Creates a new SOAPElement object initialized with the
given Name object and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(SOAPElement element)
Add a SOAPElement as a child of this
SOAPElement instance. |
SOAPElement |
addChildElement(java.lang.String localName)
Creates a new SOAPElement object initialized with the
given String object and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix)
Creates a new SOAPElement object initialized with the
specified local name and prefix and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
Creates a new SOAPElement object initialized with the
specified local name, prefix, and URI and adds the new element to this
SOAPElement object. |
SOAPElement |
addNamespaceDeclaration(java.lang.String prefix,
java.lang.String uri)
Not supported, always throws UnsupportedOperationException |
SOAPElement |
addTextNode(java.lang.String text)
Not supported, always throws UnsupportedOperationException |
void |
detachNode()
Not supported, always throws UnsupportedOperationException |
boolean |
equals(java.lang.Object o)
Current implementation checks if the set of Names under root element is the same and only if their subnodes are text nodes, their values are also compared. |
java.util.Iterator |
getAllAttributes()
Returns an iterator over all of the attribute names in this SOAPElement object. |
java.lang.String |
getAttributeValue(Name name)
Returns the value of the attribute with the specified name. |
java.util.Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element. |
java.util.Iterator |
getChildElements(Name name)
Returns an iterator over all the child elements with the specified name. |
javax.xml.transform.Source |
getContent()
Return source |
Name |
getElementName()
Not supported, always throws UnsupportedOperationException |
java.lang.String |
getEncodingStyle()
Returns the encoding style for this SOAPElement object. |
SOAPElement |
getInternalSOAPElement()
|
java.util.Iterator |
getNamespacePrefixes()
Not supported, always throws UnsupportedOperationException |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Not supported, always throws UnsupportedOperationException |
SOAPElement |
getParentElement()
Not supported, always throws UnsupportedOperationException |
java.lang.String |
getValue()
Returns the the value of the immediate child of this Node
object if a child exists and its value is text. |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
* Current implementation deserializes a String created from this instance |
void |
recycleNode()
Notifies the implementation that this Node
object is no longer being used by the application and that the
implementation is free to reuse this object for nodes that may
be created later. |
boolean |
removeAttribute(Name name)
Not supported, always throws UnsupportedOperationException |
boolean |
removeNamespaceDeclaration(java.lang.String prefix)
Not supported, always throws UnsupportedOperationException |
void |
setContent(javax.xml.transform.Source source)
Set content from specified Source. |
void |
setEncodingStyle(java.lang.String encodingStyle)
Sets the encoding style for this SOAPElement object
to one specified. |
void |
setInternalSOAPElement(SOAPElement element)
|
void |
setParentElement(SOAPElement parent)
Not supported, always throws UnsupportedOperationException |
void |
writeExternal(java.io.ObjectOutput out)
Current implementation serializes a String created from this instance |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOCAL_NAME
Constructor Detail |
public ReferenceProperties() throws SOAPException
SOAPException
Method Detail |
public boolean equals(java.lang.Object o)
o
-
public int hashCode()
public SOAPElement addChildElement(Name name) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
given Name
object and adds the new element to this
SOAPElement
object.
addChildElement
in interface SOAPElement
name
- a Name
object with the XML name for the
new element
SOAPElement
object that was created
SOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
given String
object and adds the new element to this
SOAPElement
object.
addChildElement
in interface SOAPElement
localName
- a String
giving the local name for
the element
SOAPElement
object that was created
SOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName, java.lang.String prefix) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
specified local name and prefix and adds the new element to this
SOAPElement
object.
addChildElement
in interface SOAPElement
localName
- a String
giving the local name for
the new elementprefix
- a String
giving the namespace prefix for
the new element
SOAPElement
object that was created
SOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName, java.lang.String prefix, java.lang.String uri) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
specified local name, prefix, and URI and adds the new element to this
SOAPElement
object.
addChildElement
in interface SOAPElement
localName
- a String
giving the local name for
the new elementprefix
- a String
giving the namespace prefix for
the new elementuri
- a String
giving the URI of the namespace
to which the new element belongs
SOAPElement
object that was created
SOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(SOAPElement element) throws SOAPException
SOAPElement
SOAPElement
as a child of this
SOAPElement
instance. The SOAPElement
is expected to be created by a
SOAPElementFactory
. Callers should not rely on the
element instance being added as is into the XML
tree. Implementations could end up copying the content
of the SOAPElement
passed into an instance of
a different SOAPElement
implementation. For
instance if addChildElement()
is called on a
SOAPHeader
, element
will be copied
into an instance of a SOAPHeaderElement
.
The fragment rooted in element
is either added
as a whole or not at all, if there was an error.
The fragment rooted in element
cannot contain
elements named "Envelope", "Header" or "Body" and in the SOAP
namespace. Any namespace prefixes present in the fragment
should be fully resolved using appropriate namespace
declarations within the fragment itself.
addChildElement
in interface SOAPElement
element
- the SOAPElement
to be added as a
new child
SOAPException
- if there was an error in adding this
element as a childpublic SOAPElement addTextNode(java.lang.String text) throws SOAPException
UnsupportedOperationException
addTextNode
in interface SOAPElement
text
-
SOAPException
public SOAPElement addAttribute(Name name, java.lang.String value) throws SOAPException
UnsupportedOperationException
addAttribute
in interface SOAPElement
name
- value
-
SOAPException
public SOAPElement addNamespaceDeclaration(java.lang.String prefix, java.lang.String uri) throws SOAPException
UnsupportedOperationException
addNamespaceDeclaration
in interface SOAPElement
prefix
- uri
-
SOAPException
public java.lang.String getAttributeValue(Name name)
SOAPElement
getAttributeValue
in interface SOAPElement
name
- a Name
object with the name of the attribute
String
giving the value of the specified
attributepublic java.util.Iterator getAllAttributes()
SOAPElement
SOAPElement
object. The iterator can be used to get
the attribute names, which can then be passed to the method
getAttributeValue
to retrieve the value of each
attribute.
getAllAttributes
in interface SOAPElement
public java.lang.String getNamespaceURI(java.lang.String prefix)
UnsupportedOperationException
getNamespaceURI
in interface SOAPElement
prefix
-
public java.util.Iterator getNamespacePrefixes()
UnsupportedOperationException
getNamespacePrefixes
in interface SOAPElement
public Name getElementName()
UnsupportedOperationException
getElementName
in interface SOAPElement
public boolean removeAttribute(Name name)
UnsupportedOperationException
removeAttribute
in interface SOAPElement
name
-
public boolean removeNamespaceDeclaration(java.lang.String prefix)
UnsupportedOperationException
removeNamespaceDeclaration
in interface SOAPElement
prefix
-
public java.util.Iterator getChildElements()
SOAPElement
Text
objects as well as
SOAPElement
objects.
getChildElements
in interface SOAPElement
SOAPElement
objectpublic java.util.Iterator getChildElements(Name name)
SOAPElement
getChildElements
in interface SOAPElement
name
- a Name
object with the name of the child
elements to be returned
Iterator
object over all the elements
in this SOAPElement
object with the
specified namepublic void setEncodingStyle(java.lang.String encodingStyle) throws SOAPException
SOAPElement
SOAPElement
object
to one specified.
setEncodingStyle
in interface SOAPElement
encodingStyle
- a String
giving the encoding style
SOAPException
SOAPElement.getEncodingStyle()
public java.lang.String getEncodingStyle()
SOAPElement
SOAPElement
object.
getEncodingStyle
in interface SOAPElement
String
giving the encoding styleSOAPElement.setEncodingStyle(java.lang.String)
public java.lang.String getValue()
Node
Node
object if a child exists and its value is text.
getValue
in interface Node
String
with the text of the immediate child of
this Node
object if (1) there is a child and
(2) the child is a Text
object;
null
otherwisepublic void setParentElement(SOAPElement parent) throws SOAPException
UnsupportedOperationException
setParentElement
in interface Node
parent
-
SOAPException
Node.getParentElement()
public SOAPElement getParentElement()
UnsupportedOperationException
getParentElement
in interface Node
Node.setParentElement(javax.xml.soap.SOAPElement)
public void detachNode()
UnsupportedOperationException
detachNode
in interface Node
public void recycleNode()
Node
Node
object is no longer being used by the application and that the
implementation is free to reuse this object for nodes that may
be created later.
Calling the method recycleNode
implies that the method
detachNode
has been called previously.
recycleNode
in interface Node
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
-
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
-
java.io.IOException
public javax.xml.transform.Source getContent()
public void setContent(javax.xml.transform.Source source)
source
- instance of org.idoox.xml.TokenizerSourcepublic SOAPElement getInternalSOAPElement()
getInternalSOAPElement
in interface org.systinet.wasp.addressing.ReferencePropertiesInternal
public void setInternalSOAPElement(SOAPElement element)
setInternalSOAPElement
in interface org.systinet.wasp.addressing.ReferencePropertiesInternal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |