Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.ObjectLocalMarshaller


   private void setupGeMarshaller(AbstractMarshaller marshaller)
   {
      marshaller.mapClassToGlobalElement(ArrayOfAny.class, "e", "http://org.jboss.ws/jbws434/types", null, null);
      marshaller.mapFieldToWildcard(ArrayOfAny.class, "_any",
         new ObjectLocalMarshaller()
         {
            public void marshal(MarshallingContext ctx, Object o)
            {
               ContentHandler ch = ctx.getContentHandler();
               GenericElement ge = (GenericElement)o;
View Full Code Here


   private void setupDomMarshaller(AbstractMarshaller marshaller)
   {
      marshaller.mapClassToGlobalElement(ArrayOfAny.class, "e", "http://org.jboss.ws/jbws434/types", null, null);
      marshaller.mapFieldToWildcard(ArrayOfAny.class, "_any",
         new ObjectLocalMarshaller()
         {
            public void marshal(MarshallingContext ctx, Object o)
            {
               Element e = (Element)o;
              
View Full Code Here

   private void setupGeMarshaller(AbstractMarshaller marshaller)
   {
      marshaller.mapClassToGlobalElement(ArrayOfAny.class, "e", "http://org.jboss.ws/jbws434/types", null, null);
      marshaller.mapFieldToWildcard(ArrayOfAny.class, "_any",
         new ObjectLocalMarshaller()
         {
            public void marshal(MarshallingContext ctx, Object o)
            {
               ContentHandler ch = ctx.getContentHandler();
               GenericElement ge = (GenericElement)o;
View Full Code Here

    *
    * @see org.jboss.xb.binding.MarshallingContext#getContentHandler()
    */
   public static ObjectLocalMarshaller getWildcardMarshaller()
   {
      return new ObjectLocalMarshaller() {
         public void marshal(MarshallingContext ctx, Object o)
         {
            if (o == null)
            {
               return;
View Full Code Here

    *
    * @see org.jboss.xb.binding.MarshallingContext#getContentHandler()
    */
   public static ObjectLocalMarshaller getWildcardMarshaller()
   {
      return new ObjectLocalMarshaller() {
         public void marshal(MarshallingContext ctx, Object o)
         {
            if (o == null)
            {
               return;
View Full Code Here

      else if(term.isWildcard())
      {
         o = stack.peek();

         boolean popWildcardValue = false;
         ObjectLocalMarshaller marshaller = null;
         FieldToWildcardMapping mapping = (FieldToWildcardMapping)field2WildcardMap.get(o.getClass());
         if(mapping != null)
         {
            marshaller = mapping.marshaller;
            o = mapping.fieldInfo.getValue(o);
View Full Code Here

      else if(term.isWildcard())
      {
         o = stack.peek();

         boolean popWildcardValue = false;
         ObjectLocalMarshaller marshaller = null;
         FieldToWildcardMapping mapping = (FieldToWildcardMapping)field2WildcardMap.get(o.getClass());
         if(mapping != null)
         {
            marshaller = mapping.marshaller;
            o = mapping.fieldInfo.getValue(o);
View Full Code Here

            content.characters(marshalled.toCharArray(), 0, marshalled.length());
            return true;
         }
         else
         {
            ObjectLocalMarshaller marshaller = wildcard.getUnresolvedMarshaller();
            if(marshaller != null)
            {
               marshaller.marshal(ctx, o);
               return true;
            }
           
            String msg = "Failed to marshal wildcard: neither class mapping was found for "
               + o.getClass() + "@" + o.hashCode()
View Full Code Here

      else if(term.isWildcard())
      {
         o = stack.peek();

         boolean popWildcardValue = false;
         ObjectLocalMarshaller marshaller = null;
         FieldToWildcardMapping mapping = (FieldToWildcardMapping)field2WildcardMap.get(o.getClass());
         if(mapping != null)
         {
            marshaller = mapping.marshaller;
            o = mapping.fieldInfo.getValue(o);
View Full Code Here

            content.characters(marshalled.toCharArray(), 0, marshalled.length());
            return true;
         }
         else
         {
            ObjectLocalMarshaller marshaller = wildcard.getUnresolvedMarshaller();
            if(marshaller != null)
            {
               marshaller.marshal(ctx, o);
               return true;
            }
           
            String msg = "Failed to marshal wildcard: neither class mapping was found for "
               + o.getClass() + "@" + o.hashCode()
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.ObjectLocalMarshaller

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.