Examples of ExpandedName


Examples of com.volantis.xml.namespace.ExpandedName

    // Javadoc inherited
    public XDIMEResult callOpenOnProtocol(XDIMEContextInternal context,
            XDIMEAttributes attributes) throws XDIMEException {

        // get the value of the rel and href attributes for the link
        ExpandedName linkType = getAsExpandedName(attributes
                .getValue("", "rel"), context);
        String linkValue = attributes.getValue("", "href");

        if (logger.isDebugEnabled()) {
            logger.debug("Processing; rel=" + linkType + " href=" + linkValue);
View Full Code Here

Examples of com.volantis.xml.namespace.ExpandedName

     * @param context
     * @return
     */
    private ExpandedName getAsExpandedName(final String string,
            XDIMEContextInternal context) {
        ExpandedName expandedName = null;
        if (string != null && string.length() > 0) {
            QName qName = new ImmutableQName(string);
            expandedName = context.getExpressionContext()
                    .getNamespacePrefixTracker().resolveElementQName(qName);
        }
View Full Code Here

Examples of com.volantis.xml.namespace.ExpandedName

            throw new IllegalArgumentException(
                    "Handler element must have event attribute");
        }

        QName qName = new ImmutableQName(eventAttribute);
        ExpandedName eventType = context.getExpressionContext().
                getNamespacePrefixTracker().resolveElementQName(qName);


        // Extract the id of the handler element from the handler attribute.
        // Since it must be a fragment id all we need to do is remove the #.
View Full Code Here

Examples of com.volantis.xml.namespace.ExpandedName

    protected XDIMEResult callOpenOnProtocol(
        XDIMEContextInternal context, XDIMEAttributes attributes)
        throws XDIMEException {

        //get the value of the rel and href attributes for the link
        ExpandedName linkType =
            getAsExpandedName(attributes.getValue("", "rel"), context);
        String linkValue = attributes.getValue("", "href");

        if (logger.isDebugEnabled()) {
            logger.debug("Processing; rel=" + linkType +
View Full Code Here

Examples of com.volantis.xml.namespace.ExpandedName

     * @param context
     * @return
     */
    private ExpandedName getAsExpandedName(final String string,
                                           XDIMEContextInternal context) {
        ExpandedName expandedName = null;
        if (string != null && string.length() > 0) {
            QName qName = new ImmutableQName(string);
            expandedName = context.getExpressionContext().
                    getNamespacePrefixTracker().resolveElementQName(qName);
        }       
View Full Code Here

Examples of org.jitterbit.xml.ExpandedName

        String rootName = struct.getRootNodeName();
        if (rootName == null || rootName.length() == 0) {
            return;
        }
        XmlNameFactory nameFactory = getXmlNameFactory();
        ExpandedName root = nameFactory.newExpandedName(rootName);
        for (RootSelector sel : rootSelectors) {
            sel.setSelectedRoot(root);
        }
    }
View Full Code Here

Examples of org.jitterbit.xml.ExpandedName

    @Override
    public void applyTo(XmlStructure structure) {
        CreateXsdResult result = getResult();
        File mainXsd = result.getMainXsd();
        structure.setFilePath(mainXsd.getName());
        ExpandedName root = result.getRootName();
        structure.setRootNodeName(root.toString());
    }
View Full Code Here

Examples of org.jitterbit.xml.ExpandedName

    @Override
    public ExpandedName getSelectedRoot() throws InvalidRootException {
        File file = filePanel.getSelectedFile();
        if (file != null) {
            ExpandedName rootFromFile = getRootNameFromFile(file);
            return getFinalRoot(rootFromFile);
        }
        return null;
    }
View Full Code Here

Examples of org.jitterbit.xml.ExpandedName

    @Override
    public void applyTo(JsonStructure json) {
        CreateXsdResult result = getResult();
        File mainXsd = result.getMainXsd();
        json.setFileName(mainXsd.getName());
        ExpandedName root = result.getRootName();
        json.setRootName(root.toString());
    }
View Full Code Here

Examples of org.jitterbit.xml.ExpandedName

     */
    @Override
    public JsonStructure getDefinedStructure() {
        CreateXsdResult result = getResult();
        File mainXsd = result.getMainXsd();
        ExpandedName root = result.getRootName();
        return new JsonStructure(mainXsd.getName(), root.toString());
    }
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.