Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*     */ package com.sun.xml.bind.v2.model.impl;
  /*     */ 
  /*     */ import com.sun.istack.Nullable;
  /*     */ import com.sun.xml.bind.WhiteSpaceProcessor;
  /*     */ import com.sun.xml.bind.api.AccessorException;
  /*     */ import com.sun.xml.bind.v2.model.core.ID;
  /*     */ 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.Map;
 /*     */ import javax.activation.MimeType;
 /*     */ import org.xml.sax.SAXException;
 /*     */ 
 /*     */ public class RuntimeModelBuilder extends ModelBuilder<TypeClassFieldMethod>
 /*     */ {
 /*     */ 
 /*     */   @Nullable
 /*     */   public final JAXBContextImpl context;
 /*     */ 
 /*     */   public RuntimeModelBuilder(JAXBContextImpl contextRuntimeAnnotationReader annotationReaderMap<ClassClasssubclassReplacementsString defaultNamespaceRemap)
 /*     */   {
 /*  87 */     super(annotationReader, Navigator.REFLECTION, subclassReplacements, defaultNamespaceRemap);
 /*  88 */     this.context = context;
 /*     */   }
 /*     */ 
 /*     */   public RuntimeNonElement getClassInfo(Class clazzLocatable upstream)
 /*     */   {
 /*  93 */     return (RuntimeNonElement)super.getClassInfo(clazz, upstream);
 /*     */   }
 /*     */ 
 /*     */   public RuntimeNonElement getClassInfo(Class clazzboolean searchForSuperClassLocatable upstream)
 /*     */   {
 /*  98 */     return (RuntimeNonElement)super.getClassInfo(clazz, searchForSuperClass, upstream);
 /*     */   }
 /*     */ 
 /*     */   protected RuntimeEnumLeafInfoImpl createEnumLeafInfo(Class clazzLocatable upstream)
 /*     */   {
 /* 103 */     return new RuntimeEnumLeafInfoImpl(this, upstream, clazz);
 /*     */   }
 /*     */ 
 /*     */   protected RuntimeClassInfoImpl createClassInfo(Class clazzLocatable upstream)
 /*     */   {
 /* 108 */     return new RuntimeClassInfoImpl(this, upstream, clazz);
 /*     */   }
 /*     */ 
 /*     */   public RuntimeElementInfoImpl createElementInfo(RegistryInfoImpl<TypeClassFieldMethodregistryInfoMethod methodthrows IllegalAnnotationException
 /*     */   {
 /* 113 */     return new RuntimeElementInfoImpl(this, registryInfo, method);
 /*     */   }
 /*     */ 
 /*     */   public RuntimeArrayInfoImpl createArrayInfo(Locatable upstreamType arrayType)
 /*     */   {
 /* 118 */     return new RuntimeArrayInfoImpl(this, upstream, (Class)arrayType);
 /*     */   }
 /*     */ 
 /*     */   public ReflectionNavigator getNavigator() {
 /* 122 */     return (ReflectionNavigator)this.nav;
 /*     */   }
 /*     */ 
 /*     */   protected RuntimeTypeInfoSetImpl createTypeInfoSet()
 /*     */   {
 /* 127 */     return new RuntimeTypeInfoSetImpl(this.reader);
 /*     */   }
 /*     */ 
 /*     */   public RuntimeTypeInfoSet link()
 /*     */   {
 /* 132 */     return (RuntimeTypeInfoSet)super.link();
 /*     */   }
 /*     */ 
 /*     */   public static Transducer createTransducer(RuntimeNonElementRef ref)
 /*     */   {
 /* 144 */     Transducer t = ref.getTarget().getTransducer();
 /* 145 */     RuntimePropertyInfo src = ref.getSource();
 /* 146 */     ID id = src.id();
 /*     */ 
 /* 148 */     if (id == ID.IDREF) {
 /* 149 */       return RuntimeBuiltinLeafInfoImpl.STRING;
 /*     */     }
 /* 151 */     if (id == ID.ID) {
 /* 152 */       t = new IDTransducerImpl(t);
 /*     */     }
 /* 154 */     MimeType emt = src.getExpectedMimeType();
 /* 155 */     if (emt != null) {
/* 156 */       t = new MimeTypedTransducer(t, emt);
/*     */     }
/* 158 */     if (src.inlineBinaryData()) {
/* 159 */       t = new InlineBinaryTransducer(t);
/*     */     }
/* 161 */     if (src.getSchemaType() != null) {
/* 162 */       t = new SchemaTypeTransducer(t, src.getSchemaType());
/*     */     }
/* 164 */     return t;
/*     */   }
/*     */ 
/*     */   private static final class IDTransducerImpl<ValueT> extends FilterTransducer<ValueT>
/*     */   {
/*     */     public IDTransducerImpl(Transducer<ValueT> core)
/*     */     {
/* 177 */       super();
/*     */     }
/*     */ 
/*     */     public ValueT parse(CharSequence lexicalthrows AccessorExceptionSAXException
/*     */     {
/* 182 */       String value = WhiteSpaceProcessor.trim(lexical).toString();
/* 183 */       UnmarshallingContext.getInstance().addToIdTable(value);
/* 184 */       return this.core.parse(value);
/*     */     }
/*     */   }
/*     */ }
/* 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.RuntimeModelBuilder
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X