Package org.jibx.schema.elements

Examples of org.jibx.schema.elements.GroupElement


     *
     * @param qname name
     * @return definition, or <code>null</code> if not registered
     */
    public GroupElement findGroup(QName qname) {
        GroupElement grp = (GroupElement)m_globalGroupMap.get(qname);
        if (grp == null && m_importedGroupMap != null) {
            grp = (GroupElement)m_importedGroupMap.get(qname);
        }
        return grp;
    }
View Full Code Here


     *
     * @param qname name
     * @param def attribute definition
     */
    public void registerGroup(QName qname, GroupElement def) {
        GroupElement dupl = m_nameRegister.registerGroup(qname, def);
        if (dupl != null) {
            addError("Duplicate name " + qname, def);
        }
    }
View Full Code Here

        if (detail.isGroup()) {
            // TODO: extend base type for group/attributeGroup?
            QName qname = detail.getOtherName();
            SchemaHolder hold = findSchema(qname.getUri());
            if (detail.hasChild()) {
                GroupElement group = new GroupElement();
                group.setName(qname.getName());
                group.setDefinition(buildCompositor(mapping, 0, false, hold));
                addDocumentation(info, group);
                hold.getSchema().getTopLevelChildren().add(group);
            }
            if (detail.hasAttribute()) {
                AttributeGroupElement attgrp = new AttributeGroupElement();
View Full Code Here

TOP

Related Classes of org.jibx.schema.elements.GroupElement

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.