Package org.jibx.runtime.impl

Examples of org.jibx.runtime.impl.MarshallingContext.endTag()


                            ctx.content(value.toString());
                            break;
                    }
                   
                    // finish with close tag for entry element
                    ctx.endTag(m_index, ENTRY_ELEMENT_NAME);
                }
            }
           
            // finish with end tag for container element
            ctx.endTag(m_index, m_name);
View Full Code Here


                    ctx.endTag(m_index, ENTRY_ELEMENT_NAME);
                }
            }
           
            // finish with end tag for container element
            ctx.endTag(m_index, m_name);
            xwrite.popExtensionNamespaces();
        }
    }

    /* (non-Javadoc)
 
View Full Code Here

                    }
                }
       
                // finish with end tag for container element
                if (m_name != null) {
                    ctx.endTag(m_index, m_name);
                }
               
            }
        }
    }
View Full Code Here

                        entry.getKey().toString());
                }
                ctx.closeStartContent();
                if (entry.getValue() instanceof IMarshallable) {
                    ((IMarshallable)entry.getValue()).marshal(ctx);
                    ctx.endTag(m_index, ENTRY_ELEMENT_NAME);
                } else {
                    throw new JiBXException("Mapped value is not marshallable");
                }
            }
           
View Full Code Here

                    throw new JiBXException("Mapped value is not marshallable");
                }
            }
           
            // finish with end tag for container element
            ctx.endTag(m_index, m_name);
        }
    }

    /* (non-Javadoc)
     * @see org.jibx.runtime.IUnmarshaller#isPresent(org.jibx.runtime.IUnmarshallingContext)
View Full Code Here

                ctx.attribute(m_index, getKeyAttributeName(),
                    entry.getKey().toString());
                ctx.closeStartContent();
                if (entry.getValue() instanceof IMarshallable) {
                    ((IMarshallable)entry.getValue()).marshal(ctx);
                    ctx.endTag(m_index, getEntryElementName());
                } else {
                    throw new JiBXException("Mapped value is not marshallable");
                }
            }
           
View Full Code Here

                    throw new JiBXException("Mapped value is not marshallable");
                }
            }
           
            // finish with end tag for container element
            ctx.endTag(m_index, m_name);
        }
    }

    /* (non-Javadoc)
     * @see org.jibx.runtime.IUnmarshaller#isPresent(org.jibx.runtime.IUnmarshallingContext)
View Full Code Here

        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(0, "name");
        ctx.element(0, "first-name", name.firstName);
        ctx.element(0, "last-name", name.lastName);
        ctx.endTag(0, "name");
    }
}
View Full Code Here

        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(m_index, m_name);
        ctx.element(m_index, "first-name", name.firstName);
        ctx.element(m_index, "last-name", name.lastName);
        ctx.endTag(m_index, m_name);
    }
   
    /* (non-Javadoc)
     * @see org.jibx.runtime.IUnmarshaller#isPresent(org.jibx.runtime.IUnmarshallingContext)
     */
 
View Full Code Here

                }
            }
       
            // finish with end tag for container element
            if (m_name != null) {
                ctx.endTag(m_index, m_name);
            }
               
        }
    }
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.