org.ws4d.java.types
Class UnknownDataContainer

java.lang.Object
  extended by org.ws4d.java.types.UnknownDataContainer
Direct Known Subclasses:
AppSequence, CustomizeMData, Delivery, DiscoveryData, EndpointReference, Filter, HostedMData, HostMData, LocalizedString, Message, MetadataMData, ReferenceParametersMData, RelationshipMData, SOAPHeader, ThisDeviceMData, ThisModelMData

public class UnknownDataContainer
extends java.lang.Object


Constructor Summary
UnknownDataContainer()
          Constructor
UnknownDataContainer(UnknownDataContainer container)
          Copy Constructor.
 
Method Summary
 void addUnknownAttribute(QName attributeName, java.lang.String value)
           
 void addUnknownElement(QName elementName, java.lang.Object element)
           
 java.lang.String getUnknownAttribute(QName elementName)
           
 HashMap getUnknownAttributes()
          Returns a map containing all unknown attributes of this XML container.
 java.lang.Object getUnknownElement(QName elementName)
          Returns the first object with the given element name.
 HashMap getUnknownElements()
          Returns a map containing all unknown elements of this XML container.
 List getUnknownElements(QName elementName)
          Gets list of elements with given name.
 void setUnknownAttributes(HashMap attributes)
           
 void setUnknownElements(HashMap elements)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownDataContainer

public UnknownDataContainer()
Constructor


UnknownDataContainer

public UnknownDataContainer(UnknownDataContainer container)
Copy Constructor.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUnknownAttribute

public java.lang.String getUnknownAttribute(QName elementName)

getUnknownElement

public java.lang.Object getUnknownElement(QName elementName)
Returns the first object with the given element name.

Parameters:
elementName - element name
Returns:
the first object of given element name

getUnknownElements

public List getUnknownElements(QName elementName)
Gets list of elements with given name.

Parameters:
elementName - element name
Returns:
List includes each java object linked to the given element name.

getUnknownAttributes

public HashMap getUnknownAttributes()
Returns a map containing all unknown attributes of this XML container. The keys within the map are of type QName and reflect the qualified names of the attributes, whereas the values represent the corresponding attribute values as string.

Returns:
a map of all unknown attributes

getUnknownElements

public HashMap getUnknownElements()
Returns a map containing all unknown elements of this XML container. The keys within the map are of type QName and reflect the qualified names of the elements whereas the values are of type List and contain an entry for each child element with the same qualified name.

Returns:
a map of all unknown elements

addUnknownAttribute

public void addUnknownAttribute(QName attributeName,
                                java.lang.String value)
Parameters:
attributeName - the name of the unknown attribute
value - the attribute's value represented as a Java string

addUnknownElement

public void addUnknownElement(QName elementName,
                              java.lang.Object element)
Parameters:
elementName - the name of the unknown element
element - the element represented as a Java object

setUnknownAttributes

public void setUnknownAttributes(HashMap attributes)
Parameters:
attributes -

setUnknownElements

public void setUnknownElements(HashMap elements)
Parameters:
elements -