Java Code Examples for org.opensaml.xml.util.XMLHelper#appendTextContent()

The following examples show how to use org.opensaml.xml.util.XMLHelper#appendTextContent() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IterationMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Iteration iteration = (Iteration) xmlObject;
    
    if (iteration.getValue() != null) {
        XMLHelper.appendTextContent(domElement, iteration.getValue().toString());
    }
}
 
Example 2
Source File: AttributeValueTypeMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributeValueType attributeValue = (AttributeValueType) xmlObject;

    if (attributeValue.getValue() != null) {
        XMLHelper.appendTextContent(domElement, attributeValue.getValue());
    }
}
 
Example 3
Source File: IPHintMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    IPHint name = (IPHint) samlObject;

    if (name.getHint() != null) {
        XMLHelper.appendTextContent(domElement, name.getHint());
    }
}
 
Example 4
Source File: TelephoneNumberMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    TelephoneNumber number = (TelephoneNumber) samlObject;

    if (number.getNumber() != null) {
        XMLHelper.appendTextContent(domElement, number.getNumber());
    }
}
 
Example 5
Source File: StatusMessageMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    StatusMessage statusMessage = (StatusMessage) samlObject;

    if (statusMessage.getMessage() != null) {
        XMLHelper.appendTextContent(domElement, statusMessage.getMessage());
    }
}
 
Example 6
Source File: AuthnContextDeclMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AuthnContextDecl authnCtxDecl = (AuthnContextDecl) xmlObject;

    if (authnCtxDecl.getTextContent() != null) {
        XMLHelper.appendTextContent(domElement, authnCtxDecl.getTextContent());
    }
}
 
Example 7
Source File: GetCompleteMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    GetComplete gc = (GetComplete) samlObject;

    if (gc.getGetComplete() != null) {
        XMLHelper.appendTextContent(domElement, gc.getGetComplete());
    }
}
 
Example 8
Source File: OrganizationNameMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    OrganizationName name = (OrganizationName) samlObject;

    if (name.getName() != null) {
        XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
    }
}
 
Example 9
Source File: OrganizationURLMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    OrganizationURL url = (OrganizationURL) samlObject;

    if (url.getURL() != null) {
        XMLHelper.appendTextContent(domElement, url.getURL().getLocalString());
    }
}
 
Example 10
Source File: ServiceNameMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    ServiceName name = (ServiceName) samlObject;

    if (name.getName() != null) {
        XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
    }
}
 
Example 11
Source File: ActionMarshaller.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    Action action = (Action) samlObject;

    if (action.getContents() != null) {
        XMLHelper.appendTextContent(domElement, action.getContents());
    }
}
 
Example 12
Source File: ConfirmationMethodMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    ConfirmationMethod confirmationMethod = (ConfirmationMethod) samlObject;

    XMLHelper.appendTextContent(domElement, confirmationMethod.getConfirmationMethod());
}
 
Example 13
Source File: AttributedURIMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedURI attributedURI = (AttributedURI) xmlObject;
    XMLHelper.appendTextContent(domElement, attributedURI.getValue());
}
 
Example 14
Source File: AuthnContextClassRefMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    AuthnContextClassRef authnContextClassRef = (AuthnContextClassRef) samlObject;
    XMLHelper.appendTextContent(domElement, authnContextClassRef.getAuthnContextClassRef());
}
 
Example 15
Source File: ForwardableMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Forwardable forwardable = (Forwardable) xmlObject;
    XSBooleanValue value= forwardable.getValue();
    XMLHelper.appendTextContent(domElement, value.toString());
}
 
Example 16
Source File: XSURIMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    XSURI uri = (XSURI) xmlObject;

    XMLHelper.appendTextContent(domElement, uri.getValue());
}
 
Example 17
Source File: AssertionURIRefMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    AssertionURIRef assertionURIRef = (AssertionURIRef) samlObject;
    XMLHelper.appendTextContent(domElement, assertionURIRef.getAssertionURI());
}
 
Example 18
Source File: AudienceMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    Audience audience = (Audience) samlObject;

    XMLHelper.appendTextContent(domElement, audience.getUri());
}
 
Example 19
Source File: XSStringMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    XSString xsiString = (XSString) xmlObject;

    XMLHelper.appendTextContent(domElement, xsiString.getValue());
}
 
Example 20
Source File: AttributedURIMarshaller.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedURI attributedURI = (AttributedURI) xmlObject;
    XMLHelper.appendTextContent(domElement, attributedURI.getValue());
}