Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package oasis.names.tc.ebxml_regrep.xsd.rim._3;
  
  import java.util.List;
A Subscription for specified Events in an ebXML V3+ registry.

Java class for SubscriptionType complex type.

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

 <complexType name="SubscriptionType">
   <complexContent>
     <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}RegistryObjectType">
       <sequence>
         <element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}Action" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="selector" use="required" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}referenceURI" />
       <attribute name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="notificationInterval" type="{http://www.w3.org/2001/XMLSchema}duration" default="P1D" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SubscriptionType", propOrder = {
     "action"
 })
 public class SubscriptionType
     extends RegistryObjectType
 {
 
     @XmlElementRef(name = "Action", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", type = JAXBElement.class)
     protected List<JAXBElement<? extends ActionType>> action;
     @XmlAttribute(required = true)
     protected String selector;
     @XmlAttribute
     @XmlSchemaType(name = "dateTime")
     protected XMLGregorianCalendar startTime;
     @XmlAttribute
     @XmlSchemaType(name = "dateTime")
     protected XMLGregorianCalendar endTime;
     @XmlAttribute
     protected Duration notificationInterval;

    
Gets the value of the action 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 action property.

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

    getAction().add(newItem);
 

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

 
     public List<JAXBElement<? extends ActionType>> getAction() {
         if ( == null) {
              = new ArrayList<JAXBElement<? extends ActionType>>();
         }
         return this.;
     }

    
Gets the value of the selector property.

Returns:
possible object is
    public String getSelector() {
        return ;
    }

    
Sets the value of the selector property.

Parameters:
value allowed object is
    public void setSelector(String value) {
        this. = value;
    }

    
Gets the value of the startTime property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the startTime property.

Parameters:
value allowed object is
    public void setStartTime(XMLGregorianCalendar value) {
        this. = value;
    }

    
Gets the value of the endTime property.

Returns:
possible object is
    public XMLGregorianCalendar getEndTime() {
        return ;
    }

    
Sets the value of the endTime property.

Parameters:
value allowed object is
    public void setEndTime(XMLGregorianCalendar value) {
        this. = value;
    }

    
Gets the value of the notificationInterval property.

Returns:
possible object is
    public Duration getNotificationInterval() {
        return ;
    }

    
Sets the value of the notificationInterval property.

Parameters:
value allowed object is
    public void setNotificationInterval(Duration value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X