Examples of convert()


Examples of org.pac4j.core.profile.converter.StringReplaceConverter.convert()

        assertNull(converter.convert(Boolean.TRUE));
    }
   
    public void testBadRegex() {
        final StringReplaceConverter converter = new StringReplaceConverter(null, GOOD_REPLACEMENT);
        assertNull(converter.convert(GOOD_STRING));
    }
   
    public void testBadReplacement() {
        final StringReplaceConverter converter = new StringReplaceConverter(GOOD_REGEX, null);
        assertNull(converter.convert(GOOD_STRING));
View Full Code Here

Examples of org.pdf4j.saxon.expr.JPConverter.convert()

     */

    public XdmNode wrap(Object node) throws IllegalArgumentException {
         try {
             JPConverter converter = JPConverter.allocate(node.getClass(), config);
             NodeInfo nodeInfo = (NodeInfo)converter.convert(node, new EarlyEvaluationContext(config, null));
             return (XdmNode)XdmItem.wrapItem(nodeInfo);
         } catch (XPathException e) {
             throw new IllegalArgumentException(e.getMessage());
         }
    }
View Full Code Here

Examples of org.pdf4j.saxon.value.AtomicValue.convert()

                            " to " + actualItemType + " using 'eq'");
                    de.setErrorCode("XPTY0004");
                    throw de;
                } else if (keydef.isConvertUntypedToOther() &&
                        actualItemType.equals(BuiltInAtomicType.UNTYPED_ATOMIC)) {
                    item = item.convert(soughtItemType, true, xc).asAtomic();
                } else if (keydef.isConvertUntypedToOther() &&
                        soughtItemType.equals(BuiltInAtomicType.UNTYPED_ATOMIC)) {
                    // index the item as is
                } else {
                    // simply ignore this key value
View Full Code Here

Examples of org.pdf4j.saxon.value.DateTimeValue.convert()

        final int targetType = getItemType(th).getPrimitiveType();
        switch (targetType) {
            case StandardNames.XS_DATE_TIME:
                return dt;
            case StandardNames.XS_DATE:
                return dt.convert(BuiltInAtomicType.DATE, true, context).asAtomic();
            case StandardNames.XS_TIME:
                return dt.convert(BuiltInAtomicType.TIME, true, context).asAtomic();
            case StandardNames.XS_DAY_TIME_DURATION:
            case StandardNames.XS_DURATION:
                return dt.getComponent(Component.TIMEZONE);
View Full Code Here

Examples of org.pentaho.platform.api.repository2.unified.Converter.convert()

      if ( ( mimeType == null ) || ( mimeType.isEmpty() ) ) {
        return null;
      }

      // Get the input stream
      InputStream inputStream = converter.convert( repositoryFile.getId() );
      if ( inputStream == null ) {
        return null;
      }

      // Get the file data
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.richtext.HtmlRichTextConverter.convert()

  {
    HtmlRichTextConverter richTextConverter = new HtmlRichTextConverter();
    final Element element = new Element();
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, RICHTEXT);
    element.setElementType(new LabelType());
    final Object o = richTextConverter.convert(element, RICHTEXT);
    System.out.println(o);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.richtext.RichTextConverter.convert()

    {
      final RichTextConverterRegistry registry = RichTextConverterRegistry.getRegistry();
      final RichTextConverter converter = registry.getConverter(String.valueOf(richTextType));
      if (converter != null)
      {
        final Object b = converter.convert(element, initialValue);
        if (b instanceof Band)
        {
          add(parentRenderBox, (Band) b, runtime, stateKey);
          return;
        }
View Full Code Here

Examples of org.picketlink.identity.federation.api.saml.v2.request.SAML2Request.convert()

        IDPWebBrowserSSOValve idp = new IDPWebBrowserSSOValve();
        idp.setContainer(context);
        idp.setSignOutgoingMessages(false);
        idp.start();

        String samlAuth = DocumentUtil.getDocumentAsString(saml2Request.convert(art));

        String samlMessage = Base64.encodeBytes(samlAuth.getBytes());

        MockCatalinaRealm realm = new MockCatalinaRealm("anil", "test", new Principal() {
            public String getName() {
View Full Code Here

Examples of org.picketlink.identity.federation.api.saml.v2.response.SAML2Response.convert()

            AttributeStatementType attStatement = StatementUtil.createAttributeStatement(attributes);
            assertion.addStatement(attStatement);
        }

        try {
            samlResponseDocument = saml2Response.convert(responseType);

            if (logger.isTraceEnabled()) {
                logger.trace("SAML Response Document: " + DocumentUtil.asString(samlResponseDocument));
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.python.pydev.editor.correctionassist.heuristics.PercentToBraceConverter.convert()

        // add additional test code here
        assertNotNull(result);
        assertEquals("<PercentToBraceConverter@0x1 | source= match= argIndex=0 head= tail=>", result.toString());
        assertEquals(0, result.getLength());
        assertEquals("", result.convert());
        assertEquals(false, result.isSkippingFormatCallReplacement());
    }
   
    /**
     * Run the PercentToBraceConverter(String) constructor test.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.