Package com.sun.xml.bind.api

Examples of com.sun.xml.bind.api.AccessorException


/* 381 */       super(null);
/*     */     }
/*     */
/*     */     public void set(BeanT bean, ValueT value) throws AccessorException
/*     */     {
/* 386 */       throw new AccessorException(Messages.NO_SETTER.format(new Object[] { this.getter.toString() }));
/*     */     }
View Full Code Here


/* 344 */         throw ((RuntimeException)t);
/* 345 */       if ((t instanceof Error)) {
/* 346 */         throw ((Error)t);
/*     */       }
/*     */
/* 353 */       return new AccessorException(t);
/*     */     }
View Full Code Here

/*     */   public void addToPack(PackT pack, OnWireItemT item) throws AccessorException {
/*     */     Object r;
/*     */     try {
/*  78 */       r = getAdapter().unmarshal(item);
/*     */     } catch (Exception e) {
/*  80 */       throw new AccessorException(e);
/*     */     }
/*  82 */     this.core.addToPack(pack, r);
/*     */   }
View Full Code Here

/*     */
/*  70 */     XmlAdapter a = getAdapter();
/*     */     try {
/*  72 */       return a.marshal(v); } catch (Exception e) {
/*     */     }
/*  74 */     throw new AccessorException(e);
/*     */   }
View Full Code Here

/*     */   {
/*  79 */     XmlAdapter a = getAdapter();
/*     */     try {
/*  81 */       this.core.set(bean, a.unmarshal(o));
/*     */     } catch (Exception e) {
/*  83 */       throw new AccessorException(e);
/*     */     }
/*     */   }
View Full Code Here

/*     */           public void set(BeanT bean, Object value) throws AccessorException {
/* 150 */             if (value != null) {
/*     */               try {
/* 152 */                 value = this.val$ebi.createInstanceFromValue(value);
/*     */               } catch (IllegalAccessException e) {
/* 154 */                 throw new AccessorException(e);
/*     */               } catch (InvocationTargetException e) {
/* 156 */                 throw new AccessorException(e);
/*     */               } catch (InstantiationException e) {
/* 158 */                 throw new AccessorException(e);
/*     */               }
/*     */             }
/* 161 */             SingleReferenceNodeProperty.this.acc.set(bean, value);
/*     */           }
/*     */         };
View Full Code Here

/*     */
/*     */     public void declareNamespace(BeanT bean, XMLSerializer w) throws AccessorException {
/*     */       try {
/* 355 */         this.xacc.declareNamespace(bean, w);
/*     */       } catch (SAXException e) {
/* 357 */         throw new AccessorException(e);
/*     */       }
/*     */     }
View Full Code Here

/*     */     @NotNull
/*     */     public CharSequence print(BeanT o) throws AccessorException {
/*     */       try {
/* 363 */         CharSequence value = this.xacc.print(o);
/* 364 */         if (value == null)
/* 365 */           throw new AccessorException(Messages.THERE_MUST_BE_VALUE_IN_XMLVALUE.format(new Object[] { o }));
/* 366 */         return value; } catch (SAXException e) {
/*     */       }
/* 368 */       throw new AccessorException(e);
/*     */     }
View Full Code Here

/* 383 */       return inst;
/*     */     }
/*     */
/*     */     public void writeText(XMLSerializer w, BeanT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException {
/* 387 */       if (!this.xacc.hasValue(o))
/* 388 */         throw new AccessorException(Messages.THERE_MUST_BE_VALUE_IN_XMLVALUE.format(new Object[] { o }));
/* 389 */       this.xacc.writeText(w, o, fieldName);
/*     */     }
View Full Code Here

/* 389 */       this.xacc.writeText(w, o, fieldName);
/*     */     }
/*     */
/*     */     public void writeLeafElement(XMLSerializer w, Name tagName, BeanT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException {
/* 393 */       if (!this.xacc.hasValue(o))
/* 394 */         throw new AccessorException(Messages.THERE_MUST_BE_VALUE_IN_XMLVALUE.format(new Object[] { o }));
/* 395 */       this.xacc.writeLeafElement(w, tagName, o, fieldName);
/*     */     }
View Full Code Here

TOP

Related Classes of com.sun.xml.bind.api.AccessorException

Copyright © 2018 www.massapicom. 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.