org.simject.jaxb
Class Resource

java.lang.Object
  extended by org.simject.jaxb.Resource

public class Resource
extends java.lang.Object

Java class for resource complex type.

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

 <complexType name="resource">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="property" type="{http://simject.org/xml/ns/resources}property" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="target" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String name
           
protected  java.util.List<Property> property
           
protected  java.lang.String target
           
protected  java.lang.String type
           
 
Constructor Summary
Resource()
           
 
Method Summary
 java.lang.String getName()
          Gets the value of the name property.
 java.util.List<Property> getProperty()
          Gets the value of the property property.
 java.lang.String getTarget()
          Gets the value of the target property.
 java.lang.String getType()
          Gets the value of the type property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setTarget(java.lang.String value)
          Sets the value of the target property.
 void setType(java.lang.String 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

property

protected java.util.List<Property> property

name

protected java.lang.String name

target

protected java.lang.String target

type

protected java.lang.String type
Constructor Detail

Resource

public Resource()
Method Detail

getProperty

public java.util.List<Property> getProperty()
Gets the value of the property 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 property property.

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

    getProperty().add(newItem);
 

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


getName

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

Returns:
possible object is String

setName

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

Parameters:
value - allowed object is String

getTarget

public java.lang.String getTarget()
Gets the value of the target property.

Returns:
possible object is String

setTarget

public void setTarget(java.lang.String value)
Sets the value of the target property.

Parameters:
value - allowed object is String

getType

public java.lang.String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(java.lang.String value)
Sets the value of the type property.

Parameters:
value - allowed object is String


Copyright © 2008. All Rights Reserved.