Examples of ObjectLocalMarshaller


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

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

      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

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

            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

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

/* 72 */     return schemaBinding;
/*    */   }
/*    */
/*    */   public static ObjectLocalMarshaller getWildcardMarshaller()
/*    */   {
/* 85 */     return new ObjectLocalMarshaller()
/*    */     {
/*    */       public void marshal(MarshallingContext ctx, Object o) {
/* 88 */         if (o == null)
/*    */         {
/* 90 */           return;
View Full Code Here

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

/*  705 */     else if (term.isWildcard())
/*      */     {
/*  707 */       Object o = this.stack.peek();
/*      */
/*  709 */       boolean popWildcardValue = false;
/*  710 */       ObjectLocalMarshaller marshaller = null;
/*  711 */       AbstractMarshaller.FieldToWildcardMapping mapping = (AbstractMarshaller.FieldToWildcardMapping)this.field2WildcardMap.get(o.getClass());
/*  712 */       if (mapping != null)
/*      */       {
/*  714 */         marshaller = mapping.marshaller;
/*  715 */         o = mapping.fieldInfo.getValue(o);
View Full Code Here

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

/*  809 */         String marshalled = SimpleTypeBindings.marshal(autoType.getLocalPart(), o, null);
/*  810 */         this.content.characters(marshalled.toCharArray(), 0, marshalled.length());
/*  811 */         return true;
/*      */       }
/*      */
/*  815 */       ObjectLocalMarshaller marshaller = wildcard.getUnresolvedMarshaller();
/*  816 */       if (marshaller != null)
/*      */       {
/*  818 */         marshaller.marshal(this.ctx, o);
/*  819 */         return true;
/*      */       }
/*      */
/*  822 */       String msg = "Failed to marshal wildcard: neither class mapping was found for " + o.getClass() + "@" + o.hashCode() + " (toString: " + o + ") nor marshaller for unresolved classes was setup.";
/*      */
View Full Code Here

Examples of org.jboss.xb.binding.ObjectLocalMarshaller

      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
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.