Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.runtime.unmarshaller;
 /*    */ 
 /*    */ import com.sun.xml.bind.IDResolver;
 /*    */ import java.util.HashMap;
 /*    */ import java.util.concurrent.Callable;
 /*    */ 
 /*    */ final class DefaultIDResolver extends IDResolver
 /*    */ {
 /* 51 */   private HashMap<StringObjectidmap = null;
/*    */ 
/*    */   public void startDocument() {
/* 54 */     if (this. != null)
/* 55 */       this..clear();
/*    */   }
/*    */ 
/*    */   public void bind(String idObject obj) {
/* 59 */     if (this. == nullthis. = new HashMap();
/* 60 */     this..put(idobj);
/*    */   }
/*    */ 
/*    */   public Callable resolve(String idClass targetType) {
/* 64 */     return new Callable(id) {
/*    */       public Object call() throws Exception {
/* 66 */         if (DefaultIDResolver.this. == nullreturn null;
/* 67 */         return DefaultIDResolver.this..get(this.);
/*    */       }
/*    */     };
/*    */   }
/*    */ }
/* 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.DefaultIDResolver
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X