1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opensaml.saml2.metadata.impl;
22
23 import org.opensaml.saml2.metadata.IndexedEndpoint;
24 import org.opensaml.xml.schema.XSBooleanValue;
25
26
27
28
29 public abstract class IndexedEndpointImpl extends EndpointImpl implements IndexedEndpoint {
30
31
32 private Integer index;
33
34
35 private XSBooleanValue isDefault;
36
37
38
39
40
41
42
43
44 protected IndexedEndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
45 super(namespaceURI, elementLocalName, namespacePrefix);
46 }
47
48
49 public Integer getIndex() {
50 return index;
51 }
52
53
54 public void setIndex(Integer index) {
55 this.index = prepareForAssignment(this.index, index);
56 }
57
58
59 public Boolean isDefault() {
60 if (isDefault == null) {
61 return Boolean.FALSE;
62 }
63 return isDefault.getValue();
64 }
65
66
67 public XSBooleanValue isDefaultXSBoolean() {
68 return isDefault;
69 }
70
71
72 public void setIsDefault(Boolean newIsDefault){
73 if(newIsDefault != null){
74 isDefault = prepareForAssignment(isDefault, new XSBooleanValue(newIsDefault, false));
75 }else{
76 isDefault = prepareForAssignment(isDefault, null);
77 }
78 }
79
80
81 public void setIsDefault(XSBooleanValue isDefault) {
82 this.isDefault = prepareForAssignment(this.isDefault, isDefault);
83 }
84 }