Examples of attributeInt()


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

            throw new JiBXException
                ("Missing required schema namespace declaration");
        }
       
        // create new hashmap if needed
        int size = ctx.attributeInt(m_uri, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        Map map = (Map)obj;
        if (map == null) {
            map = new HashMap(size);
        }
       
View Full Code Here

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

        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }
       
        // create new hashmap if needed
        int size = ctx.attributeInt(m_uri, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        HashMap map = (HashMap)obj;
        if (map == null) {
            map = new HashMap(size);
        }
       
View Full Code Here

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

        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }
       
        // create new hashmap if needed
        int size = ctx.attributeInt(m_uri,
            getSizeAttributeName(), DEFAULT_SIZE);
        Map map = (Map)obj;
        if (map == null) {
            map = new HashMap(size);
        }
View Full Code Here

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

                // 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);
                String tpack = ictx.attributeText(URI_ATTRIBUTES,
                    BINDING_PACKAGE, null);
View Full Code Here

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

                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);
                String tpack = ictx.attributeText(URI_ATTRIBUTES,
                    BINDING_PACKAGE, null);
                boolean direct = ctx.attributeBoolean(URI_ATTRIBUTES,
                    INCLUDE_PRECOMPILED, false);
View Full Code Here

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

   {
      UnmarshallingContext ctx = (UnmarshallingContext)ictx;
      if (!ctx.isAt(marshalURI, marshallName))
         ctx.throwStartTagNameError(marshalURI, marshallName);

      int size = ctx.attributeInt(marshalURI, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
      Properties map = (Properties)obj;
      if (map == null)
         map = new Properties(size);

      ctx.parsePastStartTag(marshalURI, marshallName);
View Full Code Here

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

    public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException {
        UnmarshallingContext ctx = (UnmarshallingContext) ictx;
        if (!ctx.isAt(marshalURI, marshallName))
            ctx.throwStartTagNameError(marshalURI, marshallName);

        int size = ctx.attributeInt(marshalURI, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        Properties map = (Properties) obj;
        if (map == null)
            map = new Properties(size);

        ctx.parsePastStartTag(marshalURI, marshallName);
View Full Code Here

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

    public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException {
        UnmarshallingContext ctx = (UnmarshallingContext) ictx;
        if (!ctx.isAt(marshalURI, marshallName))
            ctx.throwStartTagNameError(marshalURI, marshallName);

        int size = ctx.attributeInt(marshalURI, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        Properties map = (Properties) obj;
        if (map == null)
            map = new Properties(size);

        ctx.parsePastStartTag(marshalURI, marshallName);
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.