Package com.asakusafw.dmdl.model

Examples of com.asakusafw.dmdl.model.AstAttributeElement


            }
        }
        return new AstAttribute(
                null,
                toName(PrimaryKeyDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(PrimaryKeyDriver.ELEMENT_NAME),
                        new AstAttributeValueArray(null, primaryKeys)));
    }
View Full Code Here


            throw new IllegalArgumentException("timestamp must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(CacheSupportDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.SID_ELEMENT_NAME),
                        toName(sid)),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.TIMESTAMP_ELEMENT_NAME),
                        toName(timestamp)));
    }
View Full Code Here

            throw new IllegalArgumentException("deleteFlagValue must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(CacheSupportDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.SID_ELEMENT_NAME),
                        toName(sid)),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.TIMESTAMP_ELEMENT_NAME),
                        toName(timestamp)),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.DELETE_FLAG_ELEMENT_NAME),
                        toName(deleteFlag)),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.DELETE_FLAG_VALUE_ELEMENT_NAME),
                        deleteFlagValue));
    }
View Full Code Here

            throw new IllegalArgumentException("elementName must not be null"); //$NON-NLS-1$
        }
        if (literalKind == null) {
            throw new IllegalArgumentException("literalKind must not be null"); //$NON-NLS-1$
        }
        AstAttributeElement target = elements.remove(elementName);
        if (target == null) {
            if (mandatory) {
                environment.report(new Diagnostic(
                        Level.ERROR,
                        attribute.name,
View Full Code Here

    private AstName getName(DmdlSemantics environment, AstAttribute attribute) {
        assert environment != null;
        assert attribute != null;
        Map<String, AstAttributeElement> elements = AttributeUtil.getElementMap(attribute);
        AstAttributeElement nameElement = elements.remove(ELEMENT_NAME);
        environment.reportAll(AttributeUtil.reportInvalidElements(attribute, elements.values()));
        if (nameElement == null) {
            environment.report(new Diagnostic(
                    Level.ERROR,
                    attribute.name,
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.model.AstAttributeElement

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.