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.api.AccessorException;
 /*     */ import org.xml.sax.SAXException;
 /*     */ 
 /*     */ public final class Scope<BeanT, PropT, ItemT, PackT>
 /*     */ {
/*     */   public final UnmarshallingContext context;
/*     */   private BeanT bean;
/*     */   private Accessor<BeanT, PropT> acc;
/*     */   private PackT pack;
/*     */   private Lister<BeanT, PropT, ItemT, PackT> lister;
/*     */ 
/*     */   Scope(UnmarshallingContext context)
/*     */   {
/*  63 */     this. = context;
/*     */   }
/*     */ 
/*     */   public boolean hasStarted()
/*     */   {
/*  70 */     return this. != null;
/*     */   }
/*     */ 
/*     */   public void reset()
/*     */   {
/*  77 */     if (this. == null)
/*     */     {
/*  79 */       assert (clean());
/*  80 */       return;
/*     */     }
/*     */ 
/*  83 */     this. = null;
/*  84 */     this. = null;
/*  85 */     this. = null;
/*  86 */     this. = null;
/*     */   }
/*     */ 
/*     */   public void finish()
/*     */     throws AccessorException
/*     */   {
/*  94 */     if (hasStarted()) {
/*  95 */       this..endPacking(this.this.this.);
/*  96 */       reset();
/*     */     }
/*  98 */     assert (clean());
/*     */   }
/*     */ 
/*     */   private boolean clean() {
/* 102 */     return (this. == null) && (this. == null) && (this. == null) && (this. == null);
/*     */   }
/*     */ 
/*     */   public void add(Accessor<BeanT, PropT> accLister<BeanT, PropT, ItemT, PackT> lister, ItemT value)
/*     */     throws SAXException
/*     */   {
/*     */     try
/*     */     {
/* 110 */       if (!hasStarted()) {
/* 111 */         this. = this..getCurrentState().;
/* 112 */         this. = acc;
/* 113 */         this. = lister;
/* 114 */         this. = lister.startPacking(this.acc);
/*     */       }
/*     */ 
/* 117 */       lister.addToPack(this.value);
/*     */     } catch (AccessorException e) {
/* 119 */       Loader.handleGenericException(etrue);
/*     */ 
/* 121 */       this. = Lister.getErrorInstance();
/* 122 */       this. = Accessor.getErrorInstance();
/*     */     }
/*     */   }
/*     */ 
/*     */   public void start(Accessor<BeanT, PropT> accLister<BeanT, PropT, ItemT, PackT> lister)
/*     */     throws SAXException
/*     */   {
/*     */     try
/*     */     {
/* 134 */       if (!hasStarted()) {
/* 135 */         this. = this..getCurrentState().;
/* 136 */         this. = acc;
/* 137 */         this. = lister;
/* 138 */         this. = lister.startPacking(this.acc);
/*     */       }
/*     */     } catch (AccessorException e) {
/* 141 */       Loader.handleGenericException(etrue);
/*     */ 
/* 143 */       this. = Lister.getErrorInstance();
/* 144 */       this. = Accessor.getErrorInstance();
/*     */     }
/*     */   }
/*     */ }
/* 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.Scope
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X