Package org.jitterbit.xml

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


    @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

    @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

    @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

     */
    @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

    }

    private void processPossibleMatch(Element type) {
        if (isCorrectExtension(type)) {
            ExpandedName typeName = getTypeName(type);
            derivedTypes.add(new TypeDef(typeName, type));
        }
    }
View Full Code Here

    private boolean isCorrectExtension(Element e) {
        String base = e.getAttribute("base");
        if (StringUtils.isNotBlank(base)) {
            QualifiedName qname = qname(base);
            String uri = e.lookupNamespaceURI(qname.getPrefix());
            ExpandedName expName = nameFactory.newExpandedName(uri, qname.getLocalName());
            return expName.equals(baseType);
        }
        return false;
    }
View Full Code Here

                        // TODO: Implement me
                    }

                    private void checkInitialDisplayMode() {
                        TreeMapperMode mode = TreeMapperMode.SIMPLE;
                        ExpandedName sfo = m_Transformation.getSalesforceObject();
                        if (sfo != null) {
                            if (sfo.getLocalName().equals(SoqlParser.AGGREGATE_RESULT)) {
                                mode = TreeMapperMode.FULL;
                            }
                        }
                        TreeMapper.this.mode = mode;
                    }
View Full Code Here

            return m_Name;
        }
        if (StringUtils.isEmpty(m_Name)) {
            return null;
        }
        ExpandedName name = XML_NAME_FACTORY.newExpandedName(getExtension().getNamespace(), m_Name);
        return name.toString();
    }
View Full Code Here

        }
        String local = getSchemaType();
        if ((local == null) || (local.length() == 0)) {
            return null;
        }
        ExpandedName name = XML_NAME_FACTORY.newExpandedName(getSchemaTypeNamespace(), getSchemaType());
        return name.toString();
  }
View Full Code Here

TOP

Related Classes of org.jitterbit.xml.ExpandedName

Copyright © 2018 www.massapicom. 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.