org.ws4d.java.types
Class AttributedURI

java.lang.Object
  extended by org.ws4d.java.types.URI
      extended by org.ws4d.java.types.AttributedURI

public class AttributedURI
extends URI

Extension of uri. Includes Map with attribute name to attribute value.


Field Summary
 
Fields inherited from class org.ws4d.java.types.URI
EMPTY_URI, URN_SCHEMA_PREFIX
 
Constructor Summary
AttributedURI(java.lang.String suri)
          Constructor.
AttributedURI(java.lang.String suri, HashMap attributeMap)
          Constructor.
AttributedURI(java.lang.String absoluteURI, URI baseURI, HashMap attributeMap)
          Constructor.
AttributedURI(URI uri)
          Constructor.
AttributedURI(URI uri, HashMap attributeMap)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getAttribute(QName attributeName)
          Get attribute value of uri by attribute name.
 HashMap getAttributedMap_QN_2_Obj()
          Get the whole Map.
 int hashCode()
           
static AttributedURI parse(ElementParser parser)
          Method to parse a AttributedURI.
 void serialize(XmlSerializer serializer, java.lang.String namespace, java.lang.String elementName)
          Serialize the Attributed URI to the Soap Document.
 
Methods inherited from class org.ws4d.java.types.URI
absolutize, clone, equalsWsdRfc3986, getFragment, getHost, getHostWithPort, getPassword, getPath, getPath, getPathDeepness, getPort, getQuery, getSchema, getUser, isIPv6Address, isIPv6Address, isRelativeReference, isURN, isValid, setFragment, setFragmentEncoded, setQuery, setQueryEncoded, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributedURI

public AttributedURI(java.lang.String suri)
Constructor. Creates an URI form String.

Parameters:
suri - the String representation of an URI.

AttributedURI

public AttributedURI(java.lang.String suri,
                     HashMap attributeMap)
Constructor. Creates an URI form String.

Parameters:
suri - the String representation of an URI.
attributeMap - Map: attribute names to attribute values

AttributedURI

public AttributedURI(java.lang.String absoluteURI,
                     URI baseURI,
                     HashMap attributeMap)
Constructor. Creates an URI form String.

Parameters:
absoluteURI - the String representation of an URI.
baseURI - if baseURI is set, the absoluteURI is handled as relative URI in relation to the baseURI.
attributeMap - Map: attribute names to attribute values

AttributedURI

public AttributedURI(URI uri)
Constructor.

Parameters:
uri -

AttributedURI

public AttributedURI(URI uri,
                     HashMap attributeMap)
Constructor.

Parameters:
uri -
attributeMap - Map: attribute names to attribute values
Method Detail

getAttribute

public java.lang.Object getAttribute(QName attributeName)
Get attribute value of uri by attribute name.

Parameters:
attributeName - attribute name to get the linked attribute value.
Returns:
attribute value

getAttributedMap_QN_2_Obj

public HashMap getAttributedMap_QN_2_Obj()
Get the whole Map.

Returns:
map attributeMap_QN_2_Obj

hashCode

public int hashCode()
Overrides:
hashCode in class URI

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class URI

parse

public static AttributedURI parse(ElementParser parser)
                           throws org.xmlpull.v1.XmlPullParserException,
                                  java.io.IOException
Method to parse a AttributedURI.

Parameters:
parser -
Returns:
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException

serialize

public void serialize(XmlSerializer serializer,
                      java.lang.String namespace,
                      java.lang.String elementName)
               throws java.io.IOException
Serialize the Attributed URI to the Soap Document.

Parameters:
namespace -
elementName -
attrUri -
Throws:
java.lang.IllegalArgumentException
WS4DIllegalStateException
java.io.IOException