Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package com.sun.xml.bind.v2.runtime.unmarshaller;
 /*     */ 
 /*     */ import javax.activation.DataHandler;
 /*     */ import javax.xml.bind.ValidationEventHandler;
 /*     */ import javax.xml.namespace.NamespaceContext;
 /*     */ import org.xml.sax.Attributes;
 /*     */ import org.xml.sax.SAXException;
 /*     */ 
/*     */ final class MTOMDecorator
/*     */   implements XmlVisitor
/*     */ {
/*     */   private final XmlVisitor next;
/*     */   private final AttachmentUnmarshaller au;
/*     */   private UnmarshallerImpl parent;
/*  61 */   private final Base64Data base64data = new Base64Data();
/*     */   private boolean inXopInclude;
/*     */   private boolean followXop;
/*     */ 
/*     */   public MTOMDecorator(UnmarshallerImpl parentXmlVisitor nextAttachmentUnmarshaller au)
/*     */   {
/*  79 */     this. = parent;
/*  80 */     this. = next;
/*  81 */     this. = au;
/*     */   }
/*     */ 
/*     */   public void startDocument(LocatorEx locNamespaceContext nsContextthrows SAXException {
/*  85 */     this..startDocument(locnsContext);
/*     */   }
/*     */ 
/*     */   public void endDocument() throws SAXException {
/*  89 */     this..endDocument();
/*     */   }
/*     */ 
/*     */   public void startElement(TagName tagNamethrows SAXException {
/*  93 */     if ((tagName.local == "Include") && (tagName.uri == "http://www.w3.org/2004/08/xop/include"))
/*     */     {
/*  95 */       String href = tagName.atts.getValue("href");
/*  96 */       DataHandler attachment = this..getAttachmentAsDataHandler(href);
/*  97 */       if (attachment == null)
/*     */       {
/*  99 */         this..getEventHandler().handleEvent(null);
/*     */       }
/*     */ 
/* 102 */       this..set(attachment);
/* 103 */       this..text(this.);
/* 104 */       this. = true;
/* 105 */       this. = true;
/*     */     } else {
/* 107 */       this..startElement(tagName);
/*     */     }
/*     */   }
/*     */ 
/*     */   public void endElement(TagName tagNamethrows SAXException {
/* 111 */     if (this.)
/*     */     {
/* 113 */       this. = false;
/* 114 */       this. = true;
/* 115 */       return;
/*     */     }
/* 117 */     this..endElement(tagName);
/*     */   }
/*     */ 
/*     */   public void startPrefixMapping(String prefixString nsUrithrows SAXException {
/* 121 */     this..startPrefixMapping(prefixnsUri);
/*     */   }
/*     */ 
/*     */   public void endPrefixMapping(String prefixthrows SAXException {
/* 125 */     this..endPrefixMapping(prefix);
/*     */   }
/*     */ 
/*     */   public void text(CharSequence pcdatathrows SAXException {
/* 129 */     if (!this.)
/* 130 */       this..text(pcdata);
/*     */     else
/* 132 */       this. = false;
/*     */   }
/*     */ 
/*     */   public UnmarshallingContext getContext() {
/* 136 */     return this..getContext();
/*     */   }
/*     */ 
/*     */   public XmlVisitor.TextPredictor getPredictor() {
/* 140 */     return this..getPredictor();
/*     */   }
/*     */ }
/* 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.MTOMDecorator
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X