/*
 * XML Type:  TopicType
 * Namespace: http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.notification.topics.TopicType
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.notification.topics;


/**
 * An XML TopicType(@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd).
 *
 * This is a complex type.
 */
public interface TopicType extends org.activemq.ws.xmlbeans.notification.topics.ExtensibleDocumented
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.sD0AE8BB856E0A2189C4CA8823269D0B6.TypeSystemHolder.typeSystem.resolveHandle("topictypeda18type");
    
    /**
     * Gets the "AliasRef" element
     */
    org.activemq.ws.xmlbeans.notification.base.TopicExpressionType getAliasRef();
    
    /**
     * True if has "AliasRef" element
     */
    boolean isSetAliasRef();
    
    /**
     * Sets the "AliasRef" element
     */
    void setAliasRef(org.activemq.ws.xmlbeans.notification.base.TopicExpressionType aliasRef);
    
    /**
     * Appends and returns a new empty "AliasRef" element
     */
    org.activemq.ws.xmlbeans.notification.base.TopicExpressionType addNewAliasRef();
    
    /**
     * Unsets the "AliasRef" element
     */
    void unsetAliasRef();
    
    /**
     * Gets the "MessagePattern" element
     */
    org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType getMessagePattern();
    
    /**
     * True if has "MessagePattern" element
     */
    boolean isSetMessagePattern();
    
    /**
     * Sets the "MessagePattern" element
     */
    void setMessagePattern(org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType messagePattern);
    
    /**
     * Appends and returns a new empty "MessagePattern" element
     */
    org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType addNewMessagePattern();
    
    /**
     * Unsets the "MessagePattern" element
     */
    void unsetMessagePattern();
    
    /**
     * Gets array of all "Topic" elements
     */
    org.activemq.ws.xmlbeans.notification.topics.TopicType[] getTopicArray();
    
    /**
     * Gets ith "Topic" element
     */
    org.activemq.ws.xmlbeans.notification.topics.TopicType getTopicArray(int i);
    
    /**
     * Returns number of "Topic" element
     */
    int sizeOfTopicArray();
    
    /**
     * Sets array of all "Topic" element
     */
    void setTopicArray(org.activemq.ws.xmlbeans.notification.topics.TopicType[] topicArray);
    
    /**
     * Sets ith "Topic" element
     */
    void setTopicArray(int i, org.activemq.ws.xmlbeans.notification.topics.TopicType topic);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Topic" element
     */
    org.activemq.ws.xmlbeans.notification.topics.TopicType insertNewTopic(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Topic" element
     */
    org.activemq.ws.xmlbeans.notification.topics.TopicType addNewTopic();
    
    /**
     * Removes the ith "Topic" element
     */
    void removeTopic(int i);
    
    /**
     * Gets the "name" attribute
     */
    java.lang.String getName();
    
    /**
     * Gets (as xml) the "name" attribute
     */
    org.apache.xmlbeans.XmlNCName xgetName();
    
    /**
     * Sets the "name" attribute
     */
    void setName(java.lang.String name);
    
    /**
     * Sets (as xml) the "name" attribute
     */
    void xsetName(org.apache.xmlbeans.XmlNCName name);
    
    /**
     * Gets the "messageTypes" attribute
     */
    java.util.List getMessageTypes();
    
    /**
     * Gets (as xml) the "messageTypes" attribute
     */
    org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes xgetMessageTypes();
    
    /**
     * True if has "messageTypes" attribute
     */
    boolean isSetMessageTypes();
    
    /**
     * Sets the "messageTypes" attribute
     */
    void setMessageTypes(java.util.List messageTypes);
    
    /**
     * Sets (as xml) the "messageTypes" attribute
     */
    void xsetMessageTypes(org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes messageTypes);
    
    /**
     * Unsets the "messageTypes" attribute
     */
    void unsetMessageTypes();
    
    /**
     * Gets the "final" attribute
     */
    boolean getFinal();
    
    /**
     * Gets (as xml) the "final" attribute
     */
    org.apache.xmlbeans.XmlBoolean xgetFinal();
    
    /**
     * True if has "final" attribute
     */
    boolean isSetFinal();
    
    /**
     * Sets the "final" attribute
     */
    void setFinal(boolean xfinal);
    
    /**
     * Sets (as xml) the "final" attribute
     */
    void xsetFinal(org.apache.xmlbeans.XmlBoolean xfinal);
    
    /**
     * Unsets the "final" attribute
     */
    void unsetFinal();
    
    /**
     * An XML messageTypes(@).
     *
     * This is a list type whose items are org.apache.xmlbeans.XmlQName.
     */
    public interface MessageTypes extends org.apache.xmlbeans.XmlAnySimpleType
    {
        java.util.List getListValue();
        java.util.List xgetListValue();
        void setListValue(java.util.List list);
        /** @deprecated */
        java.util.List listValue();
        /** @deprecated */
        java.util.List xlistValue();
        /** @deprecated */
        void set(java.util.List list);
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.sD0AE8BB856E0A2189C4CA8823269D0B6.TypeSystemHolder.typeSystem.resolveHandle("messagetypes0c6aattrtype");
        
        /**
         * A factory class with static methods for creating instances
         * of this type.
         */
        
        public static final class Factory
        {
            public static org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes newValue(java.lang.Object obj) {
              return (org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes) type.newValue( obj ); }
            
            public static org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes newInstance() {
              return (org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (org.activemq.ws.xmlbeans.notification.topics.TopicType.MessageTypes) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
            
            private Factory() { } // No instance of this class allowed
        }
    }
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType newInstance() {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static org.activemq.ws.xmlbeans.notification.topics.TopicType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.activemq.ws.xmlbeans.notification.topics.TopicType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
