Package com.volantis.mcs.build.parser

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


        AttributesStructureInfo attributesStructureInfo;
        AttributeGroupInfo info;
        List attributeGroups = getAttributeGroups();
        for (Iterator i = attributeGroups.iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            info = (AttributeGroupInfo) group.getDefinition();
            attributesStructureInfo = info.getAttributesStructureInfo();

            if (attributesStructureInfo.instanceOf(className)) {
                return true;
            }
View Full Code Here


        // any of them have an attributes class set, if so then they can be used
        // as a base class.
        AttributeGroupInfo baseInfo = null;
        List attributeGroups = getAttributeGroups();
        for (Iterator i = attributeGroups.iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            System.out.println("Checking group " + group.getName());
            AttributeGroupInfo groupInfo
                    = (AttributeGroupInfo) group.getDefinition();
            AttributesStructureInfo groupAttributesStructureInfo
                    = groupInfo.getAttributesStructureInfo();

            if (groupAttributesStructureInfo.getAPIAttributesClass() != null) {
                if (baseInfo == null) {
View Full Code Here

    public Collection getInterfaceNames() {
        List names = new ArrayList();

        List attributeGroups = getAttributeGroups();
        for (Iterator i = attributeGroups.iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            AttributeGroupInfo groupInfo
                    = (AttributeGroupInfo) group.getDefinition();

            AttributesStructureInfo groupAttributesStructureInfo
                    = groupInfo.getAttributesStructureInfo();

            String apiAttributesInterface
View Full Code Here

    public Collection getInterfaceAttributeGroups() {
        List groups = new ArrayList();

        List attributeGroups = getAttributeGroups();
        for (Iterator i = attributeGroups.iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            AttributeGroupInfo groupInfo
                    = (AttributeGroupInfo) group.getDefinition();

            AttributesStructureInfo groupAttributesStructureInfo
                    = groupInfo.getAttributesStructureInfo();

            String apiAttributesInterface
View Full Code Here

        for (Iterator i = getAttributes().iterator(); i.hasNext();) {
            list.add(i.next());
        }

        for (Iterator i = getAttributeGroups().iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            AttributeGroupInfo groupInfo
                    = (AttributeGroupInfo) group.getDefinition();

            AttributesStructureInfo attributesStructureInfo
                    = groupInfo.getAttributesStructureInfo();

            // If one of the dependent groups is an interface then we need to
            // implement them, if the group does not have either an interface or a
            // class name set then we need to implement its attributes as well.
            if (attributesStructureInfo.getAPIAttributesInterface() != null) {
                attributesStructureInfo.addImplementedAttributes(list);
            } else if (attributesStructureInfo.getAPIAttributesClass() ==
                    null) {
                System.out.println("Treating group " + group.getName()
                        + " as an anonymous interface");
                attributesStructureInfo.addImplementedAttributes(list);
            }
        }
    }
View Full Code Here

                all.add(attribute);
            }
        }

        for (Iterator i = getAttributeGroups().iterator(); i.hasNext();) {
            AttributeGroup group = (AttributeGroup) i.next();
            AttributeGroupInfo groupInfo
                    = (AttributeGroupInfo) group.getDefinition();

            AttributesStructureInfo groupAttributesStructureInfo
                    = groupInfo.getAttributesStructureInfo();

            groupAttributesStructureInfo.addAllAttributes(all);
View Full Code Here

TOP

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

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.