Examples of attributeText()


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

           
            // position to start tag and create instance to unmarshal
            ValidationContext vctx = (ValidationContext)ictx.getUserContext();
            UnmarshallingContext ctx = (UnmarshallingContext)ictx;
            ctx.parseToStartTag(null, m_name);
            obj = createInstance(ctx.attributeText(null, "class", null), ctx);
            if (obj != null) {
               
                // accumulate all the attribute name-value pairs
                Map map = new HashMap();
                for (int i = 0; i < ctx.getAttributeCount(); i++) {
View Full Code Here

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

                    "base document name " + ctx.buildPositionString());
            } else {
               
                // check for conditionals on include
                boolean use = true;
                String name = ctx.attributeText(ATTR_NAMESPACE,
                    IFDEF_NAME, null);
                if (name != null) {
                    use = getValue(name, ctx) != null;
                }
                name = ctx.attributeText(ATTR_NAMESPACE, IFNDEF_NAME, null);
View Full Code Here

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

                String name = ctx.attributeText(ATTR_NAMESPACE,
                    IFDEF_NAME, null);
                if (name != null) {
                    use = getValue(name, ctx) != null;
                }
                name = ctx.attributeText(ATTR_NAMESPACE, IFNDEF_NAME, null);
                if (use && name != null) {
                    use = getValue(name, ctx) == null;
                }
               
                // get the remaining attribute values and ditch element
View Full Code Here

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

                if (use && name != null) {
                    use = getValue(name, ctx) == null;
                }
               
                // get the remaining attribute values and ditch element
                String path = ctx.attributeText(ATTR_NAMESPACE, PATH_NAME);
                String access =
                    ctx.attributeText(ATTR_NAMESPACE, ACCESSDIR_NAME);
                String label = ctx.attributeText(ATTR_NAMESPACE,
                    LABEL_NAME, null);
                ctx.parsePastElement(ELEMENT_NAMESPACE, INCLUDE_NAME);
View Full Code Here

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

                }
               
                // get the remaining attribute values and ditch element
                String path = ctx.attributeText(ATTR_NAMESPACE, PATH_NAME);
                String access =
                    ctx.attributeText(ATTR_NAMESPACE, ACCESSDIR_NAME);
                String label = ctx.attributeText(ATTR_NAMESPACE,
                    LABEL_NAME, null);
                ctx.parsePastElement(ELEMENT_NAMESPACE, INCLUDE_NAME);
               
                // check if this include is active
View Full Code Here

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

               
                // get the remaining attribute values and ditch element
                String path = ctx.attributeText(ATTR_NAMESPACE, PATH_NAME);
                String access =
                    ctx.attributeText(ATTR_NAMESPACE, ACCESSDIR_NAME);
                String label = ctx.attributeText(ATTR_NAMESPACE,
                    LABEL_NAME, null);
                ctx.parsePastElement(ELEMENT_NAMESPACE, INCLUDE_NAME);
               
                // check if this include is active
                if (use) {
View Full Code Here

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

        }
       
        // process all entries present in document
        ctx.parsePastStartTag(m_uri, m_name);
        while (ctx.isAt(m_uri, ENTRY_ELEMENT_NAME)) {
            Object key = ctx.attributeText(m_uri, KEY_ATTRIBUTE_NAME, null);
            ctx.parsePastStartTag(m_uri, ENTRY_ELEMENT_NAME);
            Object value = ctx.unmarshalElement();
            map.put(key, value);
            ctx.parsePastEndTag(m_uri, ENTRY_ELEMENT_NAME);
        }
View Full Code Here

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

        Object parent = uctx.getStackTop();
        int depth = 0;
        if (parent instanceof Collection) {
            parent = uctx.getStackObject(++depth);
        }
        return new FaultCustom((OperationCustom)parent, uctx.attributeText(null, "class"));
    }
}
View Full Code Here

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

        if (!ctx.isAt(m_uri, m_name)) {
            return null;
        } else {
           
            // check for reference to existing ID
            String id = ctx.attributeText(null, getAttributeName(), null);
            if (id == null) {
               
                // no ID value supplied, unmarshal full definition
                obj = ctx.unmarshalElement();
               
View Full Code Here

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

        }
       
        // process all entries present in document
        ctx.parsePastStartTag(m_uri, m_name);
        while (ctx.isAt(m_uri, getEntryElementName())) {
            Object key = ctx.attributeText(m_uri, getKeyAttributeName(), null);
            ctx.parsePastStartTag(m_uri, getEntryElementName());
            Object value = ctx.unmarshalElement();
            map.put(key, value);
            ctx.parsePastEndTag(m_uri, getEntryElementName());
        }
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.