com.eurotech.framework.core.configuration.metatype
Class Tad

java.lang.Object
  extended by com.eurotech.framework.core.configuration.metatype.Tad
All Implemented Interfaces:
AD

public class Tad
extends Object
implements AD

Java class for Tad complex type.

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

 <complexType name="Tad">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Option" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Toption" maxOccurs="unbounded" minOccurs="0"/>
         <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="type" use="required" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tscalar" />
       <attribute name="cardinality" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <anyAttribute/>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String _default
           
protected  List<Object> any
           
protected  Integer cardinality
           
protected  String description
           
protected  String id
           
protected  String max
           
protected  String min
           
protected  String name
           
protected  List<Toption> option
           
protected  Boolean required
           
protected  Tscalar type
           
 
Constructor Summary
Tad()
           
 
Method Summary
 List<Object> getAny()
          Gets the value of the any property.
 int getCardinality()
          Gets the value of the cardinality property.
 String getDefault()
          Gets the value of the default property.
 String getDescription()
          Gets the value of the description property.
 String getId()
          Gets the value of the id property.
 String getMax()
          Gets the value of the max property.
 String getMin()
          Gets the value of the min property.
 String getName()
          Gets the value of the name property.
 List<Option> getOption()
          Gets the value of the option property.
 Map<QName,String> getOtherAttributes()
          Gets a map that contains attributes that aren't bound to any typed property on this class.
 Scalar getType()
          Gets the value of the type property.
 boolean isRequired()
          Gets the value of the required property.
 void setCardinality(Integer value)
          Sets the value of the cardinality property.
 void setDefault(String value)
          Sets the value of the default property.
 void setDescription(String value)
          Sets the value of the description property.
 void setId(String value)
          Sets the value of the id property.
 void setMax(String value)
          Sets the value of the max property.
 void setMin(String value)
          Sets the value of the min property.
 void setName(String value)
          Sets the value of the name property.
 void setRequired(Boolean value)
          Sets the value of the required property.
 void setType(Tscalar value)
          Sets the value of the type property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

option

protected List<Toption> option

any

protected List<Object> any

name

protected String name

description

protected String description

id

protected String id

type

protected Tscalar type

cardinality

protected Integer cardinality

min

protected String min

max

protected String max

_default

protected String _default

required

protected Boolean required
Constructor Detail

Tad

public Tad()
Method Detail

getOption

public List<Option> getOption()
Gets the value of the option 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 option property.

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

    getOption().add(newItem);
 

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

Specified by:
getOption in interface AD

getAny

public List<Object> getAny()
Gets the value of the any 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 any property.

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

    getAny().add(newItem);
 

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


getName

public String getName()
Gets the value of the name property.

Specified by:
getName in interface AD
Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getDescription

public String getDescription()
Gets the value of the description property.

Specified by:
getDescription in interface AD
Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getId

public String getId()
Gets the value of the id property.

Specified by:
getId in interface AD
Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getType

public Scalar getType()
Gets the value of the type property.

Specified by:
getType in interface AD
Returns:
possible object is Tscalar

setType

public void setType(Tscalar value)
Sets the value of the type property.

Parameters:
value - allowed object is Tscalar

getCardinality

public int getCardinality()
Gets the value of the cardinality property.

Specified by:
getCardinality in interface AD
Returns:
possible object is Integer

setCardinality

public void setCardinality(Integer value)
Sets the value of the cardinality property.

Parameters:
value - allowed object is Integer

getMin

public String getMin()
Gets the value of the min property.

Specified by:
getMin in interface AD
Returns:
possible object is String

setMin

public void setMin(String value)
Sets the value of the min property.

Parameters:
value - allowed object is String

getMax

public String getMax()
Gets the value of the max property.

Specified by:
getMax in interface AD
Returns:
possible object is String

setMax

public void setMax(String value)
Sets the value of the max property.

Parameters:
value - allowed object is String

getDefault

public String getDefault()
Gets the value of the default property.

Specified by:
getDefault in interface AD
Returns:
possible object is String

setDefault

public void setDefault(String value)
Sets the value of the default property.

Parameters:
value - allowed object is String

isRequired

public boolean isRequired()
Gets the value of the required property.

Specified by:
isRequired in interface AD
Returns:
possible object is Boolean

setRequired

public void setRequired(Boolean value)
Sets the value of the required property.

Parameters:
value - allowed object is Boolean

getOtherAttributes

public Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.

the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

Returns:
always non-null


Copyright © 2013. All Rights Reserved.