本文整理了Java中org.opensaml.core.xml.schema.XSBooleanValue.toString()
方法的一些代码示例,展示了XSBooleanValue.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSBooleanValue.toString()
方法的具体详情如下:
包路径:org.opensaml.core.xml.schema.XSBooleanValue
类名称:XSBooleanValue
方法名:toString
暂无
代码示例来源:origin: org.opensaml/opensaml-core
/** {@inheritDoc} */
@Override
public String toString() {
return toString(value, numeric);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml
/** {@inheritDoc} */
@Override
public String toString() {
return toString(value, numeric);
}
代码示例来源:origin: net.shibboleth.idp/idp-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(final XMLObject xmlObject, final Element domElement) throws MarshallingException {
final Scope scope = (Scope) xmlObject;
if (scope.getRegexpXSBoolean() != null) {
domElement.setAttributeNS(null, Scope.REGEXP_ATTRIB_NAME, scope.getRegexpXSBoolean().toString());
}
}
代码示例来源:origin: org.opensaml/opensaml-soap-impl
/** {@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());
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
AttributeConsumingService service = (AttributeConsumingService) samlObject;
domElement.setAttributeNS(null, AttributeConsumingService.INDEX_ATTRIB_NAME, Integer.toString(service
.getIndex()));
if (service.isDefaultXSBoolean() != null) {
domElement.setAttributeNS(null, AttributeConsumingService.IS_DEFAULT_ATTRIB_NAME, service
.isDefaultXSBoolean().toString());
}
}
}
代码示例来源:origin: org.opensaml/opensaml-soap-impl
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
Forwardable forwardable = (Forwardable) xmlObject;
XSBooleanValue value= forwardable.getValue();
ElementSupport.appendTextContent(domElement, value.toString());
}
}
代码示例来源:origin: org.opensaml/opensaml-soap-impl
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
Delegatable delegatable = (Delegatable) xmlObject;
XSBooleanValue value= delegatable.getValue();
ElementSupport.appendTextContent(domElement, value.toString());
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
SPSSODescriptor descriptor = (SPSSODescriptor) samlObject;
if (descriptor.isAuthnRequestsSignedXSBoolean() != null) {
domElement.setAttributeNS(null, SPSSODescriptor.AUTH_REQUESTS_SIGNED_ATTRIB_NAME, descriptor
.isAuthnRequestsSignedXSBoolean().toString());
}
if (descriptor.getWantAssertionsSignedXSBoolean() != null) {
domElement.setAttributeNS(null, SPSSODescriptor.WANT_ASSERTIONS_SIGNED_ATTRIB_NAME, descriptor
.getWantAssertionsSignedXSBoolean().toString());
}
super.marshallAttributes(samlObject, domElement);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
IDPSSODescriptor descriptor = (IDPSSODescriptor) samlObject;
if (descriptor.getWantAuthnRequestsSignedXSBoolean() != null) {
domElement.setAttributeNS(null, IDPSSODescriptor.WANT_AUTHN_REQ_SIGNED_ATTRIB_NAME, descriptor
.getWantAuthnRequestsSignedXSBoolean().toString());
}
super.marshallAttributes(samlObject, domElement);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
RequestedAttribute requestedAttribute = (RequestedAttribute) samlObject;
if (requestedAttribute.isRequiredXSBoolean() != null) {
domElement.setAttributeNS(null, RequestedAttribute.IS_REQUIRED_ATTRIB_NAME, requestedAttribute
.isRequiredXSBoolean().toString());
}
super.marshallAttributes(samlObject, domElement);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
@Override
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
QueryDescriptorType descriptor = (QueryDescriptorType) xmlObject;
if (descriptor.getWantAssertionsSignedXSBoolean() != null) {
domElement.setAttributeNS(null, QueryDescriptorType.WANT_ASSERTIONS_SIGNED_ATTRIB_NAME, descriptor
.getWantAssertionsSignedXSBoolean().toString());
}
super.marshallAttributes(xmlObject, domElement);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
public void marshallAttributes(XMLObject samlObject, Element domElement) {
IndexedEndpoint iEndpoint = (IndexedEndpoint) samlObject;
if (iEndpoint.getIndex() != null) {
domElement.setAttributeNS(null, IndexedEndpoint.INDEX_ATTRIB_NAME, iEndpoint.getIndex().toString());
}
if (iEndpoint.isDefaultXSBoolean() != null) {
domElement.setAttributeNS(null, IndexedEndpoint.IS_DEFAULT_ATTRIB_NAME, iEndpoint.isDefaultXSBoolean()
.toString());
}
super.marshallAttributes(samlObject, domElement);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
NameIDPolicy policy = (NameIDPolicy) samlObject;
if (policy.getFormat() != null) {
domElement.setAttributeNS(null, NameIDPolicy.FORMAT_ATTRIB_NAME, policy.getFormat());
}
if (policy.getSPNameQualifier() != null) {
domElement.setAttributeNS(null, NameIDPolicy.SP_NAME_QUALIFIER_ATTRIB_NAME, policy.getSPNameQualifier());
}
if (policy.getAllowCreateXSBoolean() != null) {
domElement.setAttributeNS(null, NameIDPolicy.ALLOW_CREATE_ATTRIB_NAME, policy.getAllowCreateXSBoolean()
.toString());
}
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
RelayState relayState = (RelayState) xmlObject;
if (relayState.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(RelayState.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
relayState.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (relayState.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(RelayState.SOAP11_ACTOR_ATTR_NAME,
relayState.getSOAP11Actor(), domElement, false);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
RequestAuthenticated ra = (RequestAuthenticated) xmlObject;
if (ra.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(RequestAuthenticated.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
ra.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (ra.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(RequestAuthenticated.SOAP11_ACTOR_ATTR_NAME,
ra.getSOAP11Actor(), domElement, false);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
GeneratedKey key = (GeneratedKey) samlObject;
if (key.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(GeneratedKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (key.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(GeneratedKey.SOAP11_ACTOR_ATTR_NAME,
key.getSOAP11Actor(), domElement, false);
}
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
ChannelBindings cb = (ChannelBindings) xmlObject;
if (cb.getType() != null) {
domElement.setAttributeNS(null, ChannelBindings.TYPE_ATTRIB_NAME, cb.getType());
}
if (cb.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(ChannelBindings.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
cb.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (cb.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(ChannelBindings.SOAP11_ACTOR_ATTR_NAME,
cb.getSOAP11Actor(), domElement, false);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
Response response = (Response) xmlObject;
if (response.getAssertionConsumerServiceURL() != null) {
domElement.setAttributeNS(null, Response.ASSERTION_CONSUMER_SERVICE_URL_ATTRIB_NAME,
response.getAssertionConsumerServiceURL());
}
if (response.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(Response.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
response.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (response.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(Response.SOAP11_ACTOR_ATTR_NAME,
response.getSOAP11Actor(), domElement, false);
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
SessionKey key = (SessionKey) samlObject;
if (key.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(SessionKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (key.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(SessionKey.SOAP11_ACTOR_ATTR_NAME,
key.getSOAP11Actor(), domElement, false);
}
if (key.getAlgorithm() != null) {
domElement.setAttributeNS(null, SessionKey.ALGORITHM_ATTRIB_NAME, key.getAlgorithm());
}
}
}
代码示例来源:origin: org.opensaml/opensaml-saml-impl
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
SubjectConfirmation sc = (SubjectConfirmation) samlObject;
if (sc.isSOAP11MustUnderstandXSBoolean() != null) {
XMLObjectSupport.marshallAttribute(SubjectConfirmation.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
sc.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (sc.getSOAP11Actor() != null) {
XMLObjectSupport.marshallAttribute(SubjectConfirmation.SOAP11_ACTOR_ATTR_NAME,
sc.getSOAP11Actor(), domElement, false);
}
if (sc.getMethod() != null) {
domElement.setAttributeNS(null, SubjectConfirmation.METHOD_ATTRIB_NAME, sc.getMethod());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!