Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 
  // See <a href=""></a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2009.09.10 at 10:11:39 AM CEST 
 import java.util.List;

Java class for tService complex type.

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

 <complexType name="tService">
     <extension base="{}tExtensibleDocumented">
         <element name="port" type="{}tPort" maxOccurs="unbounded" minOccurs="0"/>
       <attribute name="name" use="required" type="{}NCName" />
 @XmlType(name = "tService", propOrder = {
 public class TService
     extends TExtensibleDocumented
     implements EqualsHashCodeToString
     protected List<TPortport;
     @XmlAttribute(required = true)
     @XmlSchemaType(name = "NCName")
     protected String name;

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:


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

     public List<TPortgetPort() {
         if ( == null) {
              = new ArrayList<TPort>();
         return this.;

Gets the value of the name property.

possible object is
    public String getName() {
        return ;

Sets the value of the name property.

value allowed object is
    public void setName(String value) {
        this. = value;
    public void toString(ToStringBuilder toStringBuilder) {
            thePort = this.getPort();
            String theName;
            theName = this.getName();
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        return toStringBuilder.toString();
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof TService)) {
            return ;
        if (this == object) {
            return ;
        final TService that = ((TServiceobject);
        equalsBuilder.append(this.getPort(), that.getPort());
        equalsBuilder.append(this.getName(), that.getName());
    public boolean equals(Object object) {
        if (!(object instanceof TService)) {
            return false;
        if (this == object) {
            return true;
        final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
        return equalsBuilder.isEquals();
    public void hashCode(HashCodeBuilder hashCodeBuilder) {
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        return hashCodeBuilder.toHashCode();
New to GrepCode? Check out our FAQ X