Examples of AttributeGroup


Examples of com.jpoweredcart.common.entity.catalog.AttributeGroup

    return getJdbcOperations().query(query.getSql(),
        query.getParameters(), new AttributeGroupRowMapper(){
          @Override
          public AttributeGroup mapRow(ResultSet rs, int rowNum)
              throws SQLException {
            AttributeGroup attrGrp = super.mapRow(rs, rowNum);
            attrGrp.setName(rs.getString("name"));
            return attrGrp;
          }
      }.setTargetClass(AttributeGroup.class));
  }
View Full Code Here

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

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

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

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

    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

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

    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

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

        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

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

                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

Examples of org.eclipse.jst.pagedesigner.properties.internal.AttributeGroup

   */
  public static boolean createSubElement(Shell shell,
      final IDOMElement parent, final String uri, final String tagName,
      final String[] attributes) {
   
    final   AttributeGroup group = new AttributeGroup(uri, tagName,
        attributes);

    return createSubElement(shell, parent, group);
  }
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.schema.model.AttributeGroup

                uri = getURIForPrefix(prefix);
            } else {
                localName = attributeGroupName;
                uri = targetNamespace;
            }
            AttributeGroup globalAttributeGroup = rootSchema.getAttributeGroup(uri, localName);
            if (globalAttributeGroup != null) {
                int size = globalAttributeGroup.getAttributes().size();
                if (globalAttributeGroup.getAnyAttribute() != null) {
                    processAnyAttribute(targetNamespace, defaultNamespace, owningType);
                }
                for (int j = 0; j < size; j++) {
                    processAttribute(targetNamespace, defaultNamespace, owningType, (Attribute) globalAttributeGroup.getAttributes().get(j), false);
                }
            }
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.schema.model.AttributeGroup

                uri = getURIForPrefix(prefix);
            } else {
                localName = attributeGroupName;
                uri = targetNamespace;
            }
            AttributeGroup globalAttributeGroup = rootSchema.getAttributeGroup(uri, localName);
            if (globalAttributeGroup != null) {
                int size = globalAttributeGroup.getAttributes().size();
                if (globalAttributeGroup.getAnyAttribute() != null) {
                    processAnyAttribute(targetNamespace, defaultNamespace, owningType);
                }
                for (int j = 0; j < size; j++) {
                    processAttribute(targetNamespace, defaultNamespace, owningType, (Attribute) globalAttributeGroup.getAttributes().get(j), false);
                }
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.