|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.core.configuration.metatype.Tad
public class Tad
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 |
---|
protected List<Toption> option
protected List<Object> any
protected String name
protected String description
protected String id
protected Tscalar type
protected Integer cardinality
protected String min
protected String max
protected String _default
protected Boolean required
Constructor Detail |
---|
public Tad()
Method Detail |
---|
public List<Option> getOption()
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
getOption
in interface AD
public List<Object> getAny()
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
public String getName()
getName
in interface AD
String
public void setName(String value)
value
- allowed object is
String
public String getDescription()
getDescription
in interface AD
String
public void setDescription(String value)
value
- allowed object is
String
public String getId()
getId
in interface AD
String
public void setId(String value)
value
- allowed object is
String
public Scalar getType()
getType
in interface AD
Tscalar
public void setType(Tscalar value)
value
- allowed object is
Tscalar
public int getCardinality()
getCardinality
in interface AD
Integer
public void setCardinality(Integer value)
value
- allowed object is
Integer
public String getMin()
getMin
in interface AD
String
public void setMin(String value)
value
- allowed object is
String
public String getMax()
getMax
in interface AD
String
public void setMax(String value)
value
- allowed object is
String
public String getDefault()
getDefault
in interface AD
String
public void setDefault(String value)
value
- allowed object is
String
public boolean isRequired()
isRequired
in interface AD
Boolean
public void setRequired(Boolean value)
value
- allowed object is
Boolean
public Map<QName,String> getOtherAttributes()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |