Package com.sun.msv.reader

Examples of com.sun.msv.reader.ChildlessState


            final String role = tag.getAttribute("role");
           
            if(role!=null)
            {
                module.attPools.getOrCreate(role).exported = true;
                return new ChildlessState();
            }
            // base class may process this element.
        }
        if(tag.localName.equals("hedgeExport"))
        {
            final String label = tag.getAttribute("label");
            if(label==null)
                reader.reportError(RELAXCoreIslandSchemaReader.ERR_MISSING_ATTRIBUTE,"hedgeExport","label");
                // recover by ignoring this hedgeExport
            else
                module.hedgeRules.getOrCreate(label).exported = true;
           
            return new ChildlessState();
        }
       
        return super.createChildState(tag);
    }
View Full Code Here


            else {
                reader.reportError(XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "selector", "xpath" );
                selector = new XPath[0];    // recover by providing a dummy selector
            }
           
            return new ChildlessState();
        }
        if(tag.localName.equals("field")) {
            String v = tag.getAttribute("xpath");
            if(v!=null)
                fields.add( parseField(v) );
            else {
                reader.reportError(XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "field", "xpath" );
                // recover by ignoring this field.
            }
            return new ChildlessState();
        }
       
        return null;
    }
View Full Code Here

            else
                reader.reportError(RELAXCoreReader.ERR_MISSING_ATTRIBUTE,
                                   "export", "label" );
                // recover by ignoring this export
           
            return new ChildlessState();
        }
       
        return null;
    }
View Full Code Here

            final String role = tag.getAttribute("role");
           
            if(role!=null)
            {
                module.attPools.getOrCreate(role).exported = true;
                return new ChildlessState();
            }
            // base class may process this element.
        }
        if(tag.localName.equals("hedgeExport"))
        {
            final String label = tag.getAttribute("label");
            if(label==null)
                reader.reportError(RELAXCoreIslandSchemaReader.ERR_MISSING_ATTRIBUTE,"hedgeExport","label");
                // recover by ignoring this hedgeExport
            else
                module.hedgeRules.getOrCreate(label).exported = true;
           
            return new ChildlessState();
        }
       
        return super.createChildState(tag);
    }
View Full Code Here

            else {
                reader.reportError(XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "selector", "xpath" );
                selector = new XPath[0];    // recover by providing a dummy selector
            }
           
            return new ChildlessState();
        }
        if(tag.localName.equals("field")) {
            String v = tag.getAttribute("xpath");
            if(v!=null)
                fields.add( parseField(v) );
            else {
                reader.reportError(XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "field", "xpath" );
                // recover by ignoring this field.
            }
            return new ChildlessState();
        }
       
        return null;
    }
View Full Code Here

            else
                reader.reportError(RELAXCoreReader.ERR_MISSING_ATTRIBUTE,
                                   "export", "label" );
                // recover by ignoring this export
           
            return new ChildlessState();
        }
       
        return null;
    }
View Full Code Here

TOP

Related Classes of com.sun.msv.reader.ChildlessState

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.