Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.runtime.unmarshaller;
 /*    */ 
 /*    */ import javax.xml.bind.annotation.DomHandler;
 /*    */ import org.xml.sax.SAXException;
 /*    */ 
 /*    */ public final class WildcardLoader extends ProxyLoader
 /*    */ {
 /*    */   private final DomLoader dom;
/*    */   private final WildcardMode mode;
/*    */ 
/*    */   public WildcardLoader(DomHandler domWildcardMode mode)
/*    */   {
/* 66 */     this.dom = new DomLoader(dom);
/* 67 */     this.mode = mode;
/*    */   }
/*    */ 
/*    */   protected Loader selectLoader(UnmarshallingContext.State stateTagName tagthrows SAXException {
/* 71 */     UnmarshallingContext context = state.getContext();
/*    */ 
/* 73 */     if (this.mode.allowTypedObject) {
/* 74 */       Loader l = context.selectRootLoader(state, tag);
/* 75 */       if (l != null)
/* 76 */         return l;
/*    */     }
/* 78 */     if (this.mode.allowDom) {
/* 79 */       return this.dom;
/*    */     }
/*    */ 
/* 82 */     return Discarder.INSTANCE;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     com.sun.xml.bind.v2.runtime.unmarshaller.WildcardLoader
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X