/** {@inheritDoc} */
 protected void marshallElementContent(XMLObject xmlObject, Element domElement)
     throws MarshallingException {
   AttributedUnsignedLong aul = (AttributedUnsignedLong) xmlObject;
   if (aul.getValue() != null) {
     ElementSupport.appendTextContent(domElement, aul.getValue().toString());
   }
 }
コード例 #2
0
  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement)
      throws MarshallingException {
    LocalizedURI name = (LocalizedURI) samlObject;

    if (name.getValue() != null) {
      ElementSupport.appendTextContent(domElement, name.getValue());
    }
  }
コード例 #3
0
  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement)
      throws MarshallingException {
    Company company = (Company) samlObject;

    if (company.getName() != null) {
      ElementSupport.appendTextContent(domElement, company.getName());
    }
  }
コード例 #4
0
  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement)
      throws MarshallingException {
    Keywords words = (Keywords) samlObject;

    if (words.getKeywords() != null) {
      StringBuilder sb = new StringBuilder();
      for (String s : words.getKeywords()) {
        sb.append(s);
        sb.append(' ');
      }
      ElementSupport.appendTextContent(domElement, sb.toString());
    }
  }