Package liquibase.parser

Examples of liquibase.parser.NamespaceDetails


       return resolved;
    }

    private InputSource tryResolveLiquibaseSchema(String systemId, String publicId) {
        if (systemId != null) {
            NamespaceDetails namespaceDetails;
            if (serializer != null) {
                namespaceDetails = NamespaceDetailsFactory.getInstance().getNamespaceDetails(serializer, systemId);
            } else {
                namespaceDetails = NamespaceDetailsFactory.getInstance().getNamespaceDetails(parser, systemId);
            }
            if (namespaceDetails == null) {
                log.debug("Found no namespace details class "+namespaceDetails.getClass().getName()+" for "+systemId);
                return null;
            }
            log.debug("Found namespace details class "+namespaceDetails.getClass().getName()+" for "+systemId);
            String xsdFile = namespaceDetails.getLocalPath(systemId);
            log.debug("Local path for "+systemId+" is "+xsdFile);

            if (xsdFile == null) {
                return null;
            }
View Full Code Here


    public Element createNode(LiquibaseSerializable object) {
        String namespace = object.getSerializedObjectNamespace();

        String nodeName = object.getSerializedObjectName();

        NamespaceDetails details = NamespaceDetailsFactory.getInstance().getNamespaceDetails(this, namespace);
        if (details != null && !details.getShortName(namespace).equals("")) {
            nodeName = details.getShortName(namespace)+":"+nodeName;
        }
        Element node = currentChangeLogFileDOM.createElementNS(namespace, nodeName);

        for (String field : object.getSerializableFields()) {
            setValueOnNode(node, object.getSerializableFieldNamespace(field), field, object.getSerializableFieldValue(field), object.getSerializableFieldType(field), namespace);
View Full Code Here

                node.appendChild(createNode(namespace, objectName, value.toString()));
            } else if (serializationType.equals(LiquibaseSerializable.SerializationType.DIRECT_VALUE)) {
                node.setTextContent(value.toString());
            } else {
                if (objectNamespace != null && !objectNamespace.equals(LiquibaseSerializable.STANDARD_CHANGELOG_NAMESPACE) && !objectNamespace.equals(parentNamespace)) {
                    NamespaceDetails details = NamespaceDetailsFactory.getInstance().getNamespaceDetails(this, objectNamespace);
                    node.setAttribute(details.getShortName(objectNamespace)+":"+objectName, value.toString());
                } else {
                    node.setAttribute(objectName, value.toString());
                }
            }
        }
View Full Code Here

TOP

Related Classes of liquibase.parser.NamespaceDetails

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.