Package org.jibx.schema.elements

Examples of org.jibx.schema.elements.FacetElement.type()


       
        // create a static instance of class for each enumeration value
        ArrayList enumpairs = new ArrayList();
        for (int i = 0; i < facets.size(); i++) {
            FacetElement facet = (FacetElement)facets.get(i);
            if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
               
                // get value for this enumeration element
                FacetElement.Enumeration enumelem = (Enumeration)facet;
                String value = enumelem.getValue();
               
View Full Code Here


        boolean isdiff = false;
        ArrayList enums = new ArrayList();
        ArrayList names = new ArrayList();
        for (int i = 0; i < facets.size(); i++) {
            FacetElement facet = (FacetElement)facets.get(i);
            if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
               
                // get value for this enumeration element
                FacetElement.Enumeration enumelem = (Enumeration)facet;
                enums.add(enumelem);
                String value = enumelem.getValue();
View Full Code Here

            if (type.getDerivation().type() == SchemaBase.RESTRICTION_TYPE) {
                SimpleRestrictionElement restrict = (SimpleRestrictionElement)type.getDerivation();
                FilteredSegmentList facets = restrict.getFacetsList();
                for (int i = 0; i < facets.size(); i++) {
                    FacetElement facet = (FacetElement)facets.get(i);
                    if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
                        return true;
                    }
                }
            }
        }
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.