Package com.volantis.mcs.build.parser

Examples of com.volantis.mcs.build.parser.ComplexType


            String name) {
        return new ElementInfo(scope, name);
    }

    public ComplexType createComplexType(Scope scope, String name) {
        ComplexType complexType = new ComplexTypeInfo(scope, name);
        return complexType;
    }
View Full Code Here


     * @param out  the output stream
     */
    private void writeHasMixedContentMethod(
            ElementInfo info,
            PrintStream out) {
        ComplexType complexType = info.getComplexType();
        boolean mixed = (complexType != null && complexType.isMixed());
        if (!mixed) {
            out.println();
            out.println("  // Javadoc inherited from super class.");
            out.println("  boolean hasMixedContent() {");
            out.println("    return false;");
View Full Code Here

        out.close();
    }

    private boolean isElementEmpty(ElementInfo info) {

        ComplexType complexType = info.getComplexType();

        // can only be non-empty if type is not mixed
        // always false if region tag
        boolean empty;
        boolean mixed;
        if (complexType == null) {
            empty = true;
            mixed = false;
        } else {
            mixed = complexType.isMixed();
            if ("region".equals(info.getName())) {
                empty = false;
            } else {
                empty = complexType.isEmpty() && !mixed;
            }
        }

        return empty;
    }
View Full Code Here

        marlinElementList.add(info.getName());

        AttributesStructureInfo attributesStructureInfo
                = info.getAttributesStructureInfo();

        ComplexType complexType = info.getComplexType();

        // can only be non-empty if type is not mixed
        // always false if region tag
        boolean mixed = (complexType != null && complexType.isMixed());

        String className = info.getMarlinElementClass();
        className = info.getPrefix() + "ElementHandler";
        String papiElement = info.getAPIElementClass();
        String papiAttributes = info.getAPIAttributesClass();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.build.parser.ComplexType

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.