Examples of attributeText()


Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

                ictx.setDocument(url.openStream(), null);
               
                // get basic name and package information from binding
                ictx.parseToStartTag(URI_ELEMENTS, BINDING_ELEMENT);
                String fname = org.jibx.binding.Utility.fileName(path);
                String name = ictx.attributeText(URI_ATTRIBUTES, BINDING_NAME,
                    org.jibx.binding.Utility.bindingFromFileName(fname));
                int major = ictx.attributeInt(URI_ATTRIBUTES,
                    BINDING_MAJORVER, 0);
                int minor = ictx.attributeInt(URI_ATTRIBUTES,
                    BINDING_MINORVER, 0);
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

        ctx.parsePastStartTag(m_uri, m_name);
        String tdflt = xsdlead + "string";
        while (ctx.isAt(m_uri, ENTRY_ELEMENT_NAME)) {
           
            // unmarshal key and type from start tag attributes
            Object key = ctx.attributeText(m_uri, KEY_ATTRIBUTE_NAME);
            String tname = ctx.attributeText(XSI_NAMESPACE_URI,
                TYPE_ATTRIBUTE_NAME, tdflt);
           
            // convert type name to type index number
            int type = -1;
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

        String tdflt = xsdlead + "string";
        while (ctx.isAt(m_uri, ENTRY_ELEMENT_NAME)) {
           
            // unmarshal key and type from start tag attributes
            Object key = ctx.attributeText(m_uri, KEY_ATTRIBUTE_NAME);
            String tname = ctx.attributeText(XSI_NAMESPACE_URI,
                TYPE_ATTRIBUTE_NAME, tdflt);
           
            // convert type name to type index number
            int type = -1;
            if (tname.startsWith(xsdlead)) {
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

    private static ClassDecorator classDecoratorFactory(IUnmarshallingContext ictx) {
       
        // get the class to be used for class decorator instance
        ValidationContext vctx = (ValidationContext)ictx.getUserContext();
        UnmarshallingContext ctx = (UnmarshallingContext)ictx;
        String cname = ctx.attributeText(null, "class", null);
        if (cname == null) {
            vctx.addError("Missing required 'class' attribute", new ProblemLocation(ctx));
        } else {
            try {
               
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

            ValidationContext vctx = (ValidationContext)ictx.getUserContext();
            UnmarshallingContext ctx = (UnmarshallingContext)ictx;
            ctx.parseToStartTag(null, ELEMENT_NAME);
           
            // accumulate attribute values for constructor
            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

            UnmarshallingContext ctx = (UnmarshallingContext)ictx;
            ctx.parseToStartTag(null, ELEMENT_NAME);
           
            // accumulate attribute values for constructor
            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
            boolean valid = true;
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

            ctx.parseToStartTag(null, ELEMENT_NAME);
           
            // accumulate attribute values for constructor
            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
            boolean valid = true;
            if (jclas == null && format == null) {
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

           
            // accumulate attribute values for constructor
            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
            boolean valid = true;
            if (jclas == null && format == null) {
               
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

            // accumulate attribute values for constructor
            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
            boolean valid = true;
            if (jclas == null && format == null) {
               
                // need either 'java-class' or 'format-name', just report error and skip
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.attributeText()

            String check = ctx.attributeText(null, "check-method", null);
            String dser = ctx.attributeText(null, "deserializer", null);
            String format = ctx.attributeText(null, "format-name", null);
            String jclas = ctx.attributeText(null, "java-class", null);
            String ser = ctx.attributeText(null, "serializer", null);
            String stype = ctx.attributeText(null, "type-name");
            boolean valid = true;
            if (jclas == null && format == null) {
               
                // need either 'java-class' or 'format-name', just report error and skip
                vctx.addError("'java-class' attribute is required unless 'format-name' is used", ctx.getStackTop());
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.