View Javadoc

1   /*
2    * Copyright 2009 University Corporation for Advanced Internet Development, Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.opensaml.ws.wspolicy;
18  
19  import java.util.List;
20  
21  import javax.xml.namespace.QName;
22  
23  import org.opensaml.xml.XMLObject;
24  
25  /**
26   * The OperatorContentType complex type.
27   */
28  public interface OperatorContentType extends WSPolicyObject {
29      
30      /** Local name of the XSI type. */
31      public static final String TYPE_LOCAL_NAME = "OperatorContentType"; 
32          
33      /** QName of the XSI type. */
34      public static final QName TYPE_NAME = 
35          new QName(WSPolicyConstants.WSP_NS, TYPE_LOCAL_NAME, WSPolicyConstants.WSP_PREFIX);
36      
37      /**
38       * Get the list of {@link Policy} elements.
39       * 
40       * @return the list of {@link Policy} elements
41       */
42      public List<Policy> getPolicies();
43      
44      /**
45       * Get the list of {@link All} elements.
46       * 
47       * @return the list of {@link All} elements
48       */
49      public List<All> getAlls();
50      
51      /**
52       * Get the list of {@link ExactlyOne} elements.
53       * 
54       * @return the list of {@link ExactlyOne} elements
55       */
56      public List<ExactlyOne> getExactlyOnes();
57      
58      /**
59       * Get the list of {@link PolicyReference} elements.
60       * 
61       * @return the list of {@link PolicyReference} elements
62       */
63      public List<PolicyReference> getPolicyReferences();
64      
65      
66      /**
67       * Get the complete modifiable list of XMLObject children.
68       * 
69       * @return the list of {@link XMLObject} instances
70       */
71      public List<XMLObject> getXMLObjects();
72      
73      /**
74       * Get the modifiable sublist of XMLObject children which match the specified
75       * type or element name.
76       * 
77       * @param typeOrName the element name or xsi:type
78       * 
79       * @return the list of {@link XMLObject} instances
80       */
81      public List<XMLObject> getXMLObjects(QName typeOrName);
82  
83  }