public Object renderIdentifier(T2Reference id, Class<?> leafClass, ReferenceContext context) throws ReferenceServiceException { checkServices();
public Object renderIdentifier(T2Reference id, Class<?> leafClass, ReferenceContext context) throws ReferenceServiceException { // Check we have the services installed checkServices(); // Insert an empty context if context was null context = EmptyReferenceContext.checkContext(context); // Reject if the source reference contains errors if (id.containsErrors()) { throw new ReferenceServiceException( "Can't render an identifier which contains errors to a POJO"); } // Attempt to find an appropriate StreamToValueConverterSPI instance to // build the specified class StreamToValueConverterSPI<?> converter = null; if (valueBuilderRegistry != null) { for (StreamToValueConverterSPI<?> stvc : valueBuilderRegistry) { Class<?> builtClass = stvc.getPojoClass(); if (leafClass.isAssignableFrom(builtClass)) { converter = stvc; break; } } } if (converter == null) { log.warn("No stream->value converters found for type '" + leafClass.getCanonicalName() + "'"); } // Render the identifier return renderIdentifierInner(id, leafClass, context, converter); }
public Object renderIdentifier(T2Reference id, Class<?> leafClass, ReferenceContext context) throws ReferenceServiceException { checkServices();
boolean useConverterSPI, ReferenceContext context) throws ReferenceServiceException { checkServices(); context = EmptyReferenceContext.checkContext(context); if (useConverterSPI) {
boolean useConverterSPI, ReferenceContext context) throws ReferenceServiceException { checkServices(); if (context == null) { context = new EmptyReferenceContext();
boolean useConverterSPI, ReferenceContext context) throws ReferenceServiceException { checkServices(); if (context == null) { context = new EmptyReferenceContext();
checkServices(); if (desiredDepth < 0) { throw new ReferenceServiceException(
checkServices(); if (desiredDepth < 0) { throw new ReferenceServiceException(
checkServices(); if (desiredDepth < 0) { throw new ReferenceServiceException(
private Object renderIdentifierInner(T2Reference id, Class<?> leafClass, ReferenceContext context, StreamToValueConverterSPI<?> converter) throws ReferenceServiceException { checkServices();
private Object renderIdentifierInner(T2Reference id, Class<?> leafClass, ReferenceContext context, StreamToValueConverterSPI<?> converter) throws ReferenceServiceException { checkServices();
private Object renderIdentifierInner(T2Reference id, Class<?> leafClass, ReferenceContext context, StreamToValueConverterSPI<?> converter) throws ReferenceServiceException { checkServices();
Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context) throws ReferenceServiceException { checkServices(); context = EmptyReferenceContext.checkContext(context); switch (id.getReferenceType()) {
Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context) throws ReferenceServiceException { checkServices(); if (context == null) { context = new EmptyReferenceContext();
Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context) throws ReferenceServiceException { checkServices(); if (context == null) { context = new EmptyReferenceContext();