org.apache.aries.blueprint.jaxb
Class Tmap

java.lang.Object
  extended by org.apache.aries.blueprint.jaxb.TtypedCollection
      extended by org.apache.aries.blueprint.jaxb.Tmap

public class Tmap
extends TtypedCollection

Tmap is the base type used for elements. A map may have a default value type specified, so it inherits from the TtypeCollection type. A key type can also be specified, and the map members are created from the entry elements, which require a key/value pair.

Java class for Tmap complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Tmap">
   <complexContent>
     <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TtypedCollection">
       <sequence>
         <element name="entry" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TmapEntry" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="key-type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype" />
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<TmapEntry> entry
           
protected  java.lang.String keyType
           
 
Fields inherited from class org.apache.aries.blueprint.jaxb.TtypedCollection
valueType
 
Constructor Summary
Tmap()
           
 
Method Summary
 java.util.List<TmapEntry> getEntry()
          Gets the value of the entry property.
 java.lang.String getKeyType()
          Gets the value of the keyType property.
 void setKeyType(java.lang.String value)
          Sets the value of the keyType property.
 
Methods inherited from class org.apache.aries.blueprint.jaxb.TtypedCollection
getValueType, setValueType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

protected java.util.List<TmapEntry> entry

keyType

protected java.lang.String keyType
Constructor Detail

Tmap

public Tmap()
Method Detail

getEntry

public java.util.List<TmapEntry> getEntry()
Gets the value of the entry property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the entry property.

For example, to add a new item, do as follows:

    getEntry().add(newItem);
 

Objects of the following type(s) are allowed in the list TmapEntry


getKeyType

public java.lang.String getKeyType()
Gets the value of the keyType property.

Returns:
possible object is String

setKeyType

public void setKeyType(java.lang.String value)
Sets the value of the keyType property.

Parameters:
value - allowed object is String


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.