Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*     */ package com.sun.xml.bind.v2.model.impl;
  /*     */ 
  /*     */ import com.sun.xml.bind.v2.model.core.Adapter;
  /*     */ import com.sun.xml.bind.v2.model.nav.Navigator;
 /*     */ import com.sun.xml.bind.v2.runtime.Transducer;
 /*     */ import java.lang.reflect.Field;
 /*     */ import java.lang.reflect.Method;
 /*     */ import java.lang.reflect.Type;
 /*     */ import java.util.Collection;
 /*     */ import java.util.Collections;
 /*     */ import java.util.List;
 /*     */ import javax.xml.bind.JAXBElement;
 /*     */ 
 /*     */ final class RuntimeElementInfoImpl extends ElementInfoImpl<TypeClassFieldMethod>
 /*     */   implements RuntimeElementInfo
 /*     */ {
 /*     */   private final Class<? extends XmlAdapteradapterType;
 /*     */ 
 /*     */   public RuntimeElementInfoImpl(RuntimeModelBuilder modelBuilderRegistryInfoImpl registryMethod method)
 /*     */     throws IllegalAnnotationException
 /*     */   {
 /*  68 */     super(modelBuilder, registry, method);
 /*     */ 
 /*  70 */     Adapter a = getProperty().getAdapter();
 /*     */ 
 /*  72 */     if (a != null)
 /*  73 */       this.adapterType = ((Class)a.adapterType);
 /*     */     else
 /*  75 */       this.adapterType = null;
 /*     */   }
 /*     */ 
 /*     */   protected ElementInfoImpl<TypeClassFieldMethod>.PropertyImpl createPropertyImpl()
 /*     */   {
 /*  80 */     return new RuntimePropertyImpl();
 /*     */   }
 /*     */ 
 /*     */   public RuntimeElementPropertyInfo getProperty()
 /*     */   {
 /* 132 */     return (RuntimeElementPropertyInfo)super.getProperty();
 /*     */   }
 /*     */ 
 /*     */   public Class<? extends JAXBElementgetType() {
 /* 136 */     return Navigator.REFLECTION.erasure((Type)super.getType());
 /*     */   }
 /*     */ 
 /*     */   public RuntimeClassInfo getScope() {
 /* 140 */     return (RuntimeClassInfo)super.getScope();
 /*     */   }
 /*     */ 
 /*     */   public RuntimeNonElement getContentType() {
 /* 144 */     return (RuntimeNonElement)super.getContentType();
 /*     */   }
 /*     */ 
 /*     */   class RuntimePropertyImpl extends ElementInfoImpl.PropertyImpl
 /*     */     implements RuntimeElementPropertyInfoRuntimeTypeRef
 /*     */   {
 /*     */     RuntimePropertyImpl()
 /*     */     {
 /*  83 */       super();
 /*     */     }
 /*  85 */     public Accessor getAccessor() { if (RuntimeElementInfoImpl.this.adapterType == null) {
 /*  86 */         return Accessor.JAXB_ELEMENT_VALUE;
 /*     */       }
 /*  88 */       return Accessor.JAXB_ELEMENT_VALUE.adapt((Class)getAdapter().defaultType, RuntimeElementInfoImpl.this.adapterType);
 /*     */     }
 /*     */ 
 /*     */     public Type getRawType()
 /*     */     {
 /*  93 */       return Collection.class;
 /*     */     }
 /*     */ 
 /*     */     public Type getIndividualType() {
 /*  97 */       return (Type)RuntimeElementInfoImpl.this.getContentType().getType();
 /*     */     }
 /*     */ 
 /*     */     public boolean elementOnlyContent()
 /*     */     {
 /* 102 */       return false;
 /*     */     }
 /*     */ 
 /*     */     public List<? extends RuntimeTypeRefgetTypes() {
 /* 106 */       return Collections.singletonList(this);
 /*     */     }
 /*     */ 
 /*     */     public List<? extends RuntimeNonElementref() {
 /* 110 */       return super.ref();
 /*     */     }
 /*     */ 
 /*     */     public RuntimeNonElement getTarget() {
/* 114 */       return (RuntimeNonElement)super.getTarget();
/*     */     }
/*     */ 
/*     */     public RuntimePropertyInfo getSource() {
/* 118 */       return this;
/*     */     }
/*     */ 
/*     */     public Transducer getTransducer() {
/* 122 */       return RuntimeModelBuilder.createTransducer(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.model.impl.RuntimeElementInfoImpl
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X