View Javadoc

1   /*
2    * Copyright [2005] [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.saml1.core.impl;
18  
19  import java.util.List;
20  
21  import javax.xml.namespace.QName;
22  
23  import org.opensaml.common.impl.AbstractSAMLObject;
24  import org.opensaml.saml1.core.AuthorityBinding;
25  import org.opensaml.xml.XMLObject;
26  
27  /**
28   * A concrete impementation of the {@link org.opensaml.saml1.core.SubjectLocality} interface
29   */
30  public class AuthorityBindingImpl extends AbstractSAMLObject implements AuthorityBinding {
31  
32      /** The AuthorityKind */
33      private QName authorityKind;
34  
35      /** The Location */
36      private String location;
37  
38      /** The Binding */
39      private String binding;
40  
41      /**
42       * Constructor.
43       * 
44       * @param namespaceURI the namespace the element is in
45       * @param elementLocalName the local name of the XML element this Object represents
46       * @param namespacePrefix the prefix for the given namespace
47       */
48      protected AuthorityBindingImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
49          super(namespaceURI, elementLocalName, namespacePrefix);
50     }
51      
52      /** {@inheritDoc} */
53      public QName getAuthorityKind() {
54          return authorityKind;
55      }
56  
57      /** {@inheritDoc} */
58      public void setAuthorityKind(QName authorityKind) {
59          this.authorityKind = prepareForAssignment(this.authorityKind, authorityKind);
60      }
61  
62      /** {@inheritDoc} */
63      public String getLocation() {
64          return location;
65      }
66  
67      /** {@inheritDoc} */
68      public void setLocation(String location) {
69          this.location = prepareForAssignment(this.location, location);
70      }
71  
72      /** {@inheritDoc} */
73      public String getBinding() {
74          return binding;
75      }
76  
77      /** {@inheritDoc} */
78      public void setBinding(String binding) {
79          this.binding = prepareForAssignment(this.binding, binding);
80      }
81  
82      /** {@inheritDoc} */
83      public List<XMLObject> getOrderedChildren() {
84          // No children
85          return null;
86      }
87  }