/** {@inheritDoc} */ public XSBooleanValue isNilXSBoolean() { return new XSBooleanValue(Boolean.FALSE, false); }
/** {@inheritDoc} */ public String toString() { return toString(value, numeric); }
/** * Constructor. * * @param namespaceURI * the namespace the element is in * @param elementLocalName * the local name of the XML element this Object represents * @param namespacePrefix * the prefix for the given namespace */ protected AttributeSelectorTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); mustBePresentXS = XSBooleanValue.valueOf("false"); }
/** * Adds a <code>soap11:mustUnderstand</code> attribute to the given SOAP object. * * @param soapObject the SOAP object to add the attribute to * @param mustUnderstand whether mustUnderstand is true or false */ public static void addSOAP11MustUnderstandAttribute(XMLObject soapObject, boolean mustUnderstand) { if (soapObject instanceof MustUnderstandBearing) { ((MustUnderstandBearing) soapObject).setSOAP11MustUnderstand(new XSBooleanValue(mustUnderstand, true)); } else if (soapObject instanceof AttributeExtensibleXMLObject) { ((AttributeExtensibleXMLObject) soapObject).getUnknownAttributes().put( MustUnderstandBearing.SOAP11_MUST_UNDERSTAND_ATTR_NAME, new XSBooleanValue(mustUnderstand, true).toString()); } else { throw new IllegalArgumentException("Specified object was neither MustUnderBearing nor AttributeExtensible"); } }
/** {@inheritDoc} */ public boolean equals(Object obj){ if(obj == this){ return true; } if(obj instanceof XSBooleanValue){ return hashCode() == obj.hashCode(); } return false; }
/** {@inheritDoc} */ public String toString() { return toString(value, numeric); }
/** * Constructor. * * @param namespaceURI * the namespace the element is in * @param elementLocalName * the local name of the XML element this Object represents * @param namespacePrefix * the prefix for the given namespace */ protected AttributeDesignatorTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); mustBePresentXS = XSBooleanValue.valueOf("false"); }
/** * Adds a <code>wsa:IsReferenceParameter</code> attribute to the given SOAP object. * * @param soapObject the SOAP object to add the attribute to * @param isReferenceParameter whether IsReferenceParameter is true or false */ public static void addWSAIsReferenceParameter(XMLObject soapObject, boolean isReferenceParameter) { if (soapObject instanceof IsReferenceParameterBearing) { ((IsReferenceParameterBearing)soapObject).setWSAIsReferenceParameter( new XSBooleanValue(isReferenceParameter, false)); } else if (soapObject instanceof AttributeExtensibleXMLObject) { ((AttributeExtensibleXMLObject)soapObject).getUnknownAttributes() .put(IsReferenceParameterBearing.WSA_IS_REFERENCE_PARAMETER_ATTR_NAME, new XSBooleanValue(isReferenceParameter, false).toString()); } else { throw new IllegalArgumentException("Specified object was neither IsReferenceParameterBearing nor AttributeExtensible"); } }
/** {@inheritDoc} */ public boolean equals(Object obj){ if(obj == this){ return true; } if(obj instanceof XSBooleanValue){ return hashCode() == obj.hashCode(); } return false; }
} else if ("XSBoolean".equals(name)) { XSBooleanImpl impl = new XSBooleanImpl("","",""){}; impl.setValue(new XSBooleanValue((Boolean)value, false)); xmlObjects.add(impl); } else if ("XSDateTime".equals(name)) { impl.setValue(new XSBooleanValue((Boolean)value, false)); xmlObjects.add(impl); } else {
/** {@inheritDoc} */ public Boolean isSOAP11MustUnderstand() { if (soap11MustUnderstand != null) { return soap11MustUnderstand.getValue(); } return Boolean.FALSE; }
/** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { ShibbolethMetadataScope scope = (ShibbolethMetadataScope) xmlObject; if (scope.getRegexpXSBoolean() != null) { domElement.setAttributeNS(null, ShibbolethMetadataScope.REGEXP_ATTRIB_NAME, scope.getRegexpXSBoolean().toString()); } }
/** {@inheritDoc} */ protected void processElementContent(XMLObject xmlObject, String elementContent) { XSBoolean xsiBoolean = (XSBoolean) xmlObject; xsiBoolean.setValue(XSBooleanValue.valueOf(elementContent)); } }
/** * Adds a <code>soap12:relay</code> attribute to the given SOAP object. * * @param soapObject the SOAP object to add the attribute to * @param relay whether relay is true or false */ public static void addSOAP12RelayAttribute(XMLObject soapObject, boolean relay) { if (soapObject instanceof org.opensaml.ws.soap.soap12.RelayBearing) { ((org.opensaml.ws.soap.soap12.RelayBearing) soapObject).setSOAP12Relay(new XSBooleanValue(relay, false)); } else if (soapObject instanceof AttributeExtensibleXMLObject) { ((AttributeExtensibleXMLObject) soapObject).getUnknownAttributes().put( org.opensaml.ws.soap.soap12.RelayBearing.SOAP12_RELAY_ATTR_NAME, new XSBooleanValue(relay, false).toString()); } else { throw new IllegalArgumentException("Specified object was neither RelyBearing nor AttributeExtensible"); } }
/** {@inheritDoc} */ public void setCombinePolicies(Boolean combinePolicies) { if (combinePolicies != null) { this.combinePolicies = prepareForAssignment(this.combinePolicies, new XSBooleanValue(combinePolicies, false)); } else { this.combinePolicies = prepareForAssignment(this.combinePolicies, null); } }
/** {@inheritDoc} */ public Boolean isSOAP11MustUnderstand() { if (soap11MustUnderstand != null) { return soap11MustUnderstand.getValue(); } return Boolean.FALSE; }
/** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { Renewing renewing = (Renewing) xmlObject; if (renewing.isAllowXSBoolean() != null) { domElement.setAttributeNS(null, Renewing.ALLOW_ATTRIB_NAME, renewing.isAllowXSBoolean().toString()); } if (renewing.isOKXSBoolean() != null) { domElement.setAttributeNS(null, Renewing.OK_ATTRIB_NAME, renewing.isOKXSBoolean().toString()); } }
/** {@inheritDoc} */ protected void processElementContent(XMLObject xmlObject, String elementContent) { if (elementContent != null) { Forwardable forwardable = (Forwardable) xmlObject; XSBooleanValue value = XSBooleanValue.valueOf(elementContent); forwardable.setValue(value); } }
/** {@inheritDoc} */ public void setMustBePresent(Boolean present) { if (present != null) { this.mustBePresentXS = prepareForAssignment(this.mustBePresentXS, new XSBooleanValue(present, false)); } else { this.mustBePresentXS = prepareForAssignment(this.mustBePresentXS, null); } }