Save This Page
Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.naming » [javadoc | source]
org.apache.geronimo.jee.naming
public class: ServiceRef [javadoc | source]
java.lang.Object
   org.apache.geronimo.jee.naming.ServiceRef

All Implemented Interfaces:
    Serializable

Java class for service-refType complex type.

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

<complexType name="service-refType">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="service-ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
        <choice>
          <element name="service-completion" type="{http://geronimo.apache.org/xml/ns/naming-1.2}service-completionType"/>
          <element name="port" type="{http://geronimo.apache.org/xml/ns/naming-1.2}portType" maxOccurs="unbounded"/>
        </choice>
      </sequence>
    </restriction>
  </complexContent>
</complexType>
Field Summary
protected  String serviceRefName     
protected  ServiceCompletion serviceCompletion     
protected  List<Port> port     
Method from org.apache.geronimo.jee.naming.ServiceRef Summary:
getPort,   getServiceCompletion,   getServiceRefName,   setServiceCompletion,   setServiceRefName
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.jee.naming.ServiceRef Detail:
 public List<Port> getPort() 
    Gets the value of the port 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 port property.

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

       getPort().add(newItem);
    

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

 public ServiceCompletion getServiceCompletion() 
    Gets the value of the serviceCompletion property.
 public String getServiceRefName() 
    Gets the value of the serviceRefName property.
 public  void setServiceCompletion(ServiceCompletion value) 
    Sets the value of the serviceCompletion property.
 public  void setServiceRefName(String value) 
    Sets the value of the serviceRefName property.