public T2Reference getChild(T2Reference errorId) throws ErrorDocumentServiceException { T2ReferenceImpl refImpl = T2ReferenceImpl.getAsImpl(errorId); try { return refImpl.getDeeperErrorReference(); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }
public T2Reference getChild(T2Reference errorId) throws ErrorDocumentServiceException { T2ReferenceImpl refImpl = T2ReferenceImpl.getAsImpl(errorId); try { return refImpl.getDeeperErrorReference(); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }
public T2Reference getChild(T2Reference errorId) throws ErrorDocumentServiceException { T2ReferenceImpl refImpl = T2ReferenceImpl.getAsImpl(errorId); try { return refImpl.getDeeperErrorReference(); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }
references), T2ReferenceImpl.getAsImpl(id));
T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
/** * {@inheritDoc} */ public ReferenceSet registerReferenceSet( Set<ExternalReferenceSPI> references) throws ReferenceSetServiceException { checkDao(); checkGenerator(); ReferenceSetImpl rsi = new ReferenceSetImpl(); rsi .setExternalReferences(new HashSet<ExternalReferenceSPI>( references)); T2Reference id = t2ReferenceGenerator.nextReferenceSetReference(); rsi.setTypedId(T2ReferenceImpl.getAsImpl(id)); try { referenceSetDao.store(rsi); return rsi; } catch (DaoException de) { throw new ReferenceSetServiceException(de); } } }
public IdentifiedList<T2Reference> registerEmptyList(int depth) throws ListServiceException { checkDao(); checkGenerator(); T2ReferenceImpl newReference = T2ReferenceImpl .getAsImpl(t2ReferenceGenerator.nextListReference(false, depth)); T2ReferenceListImpl newList = new T2ReferenceListImpl(); newList.setTypedId(newReference); try { listDao.store(newList); return newList; } catch (DaoException de) { throw new ListServiceException(de); } }
T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
/** * {@inheritDoc} */ public ReferenceSet registerReferenceSet( Set<ExternalReferenceSPI> references, ReferenceContext context) throws ReferenceSetServiceException { checkDao(); checkGenerator(); context = EmptyReferenceContext.checkContext(context); ReferenceSetImpl rsi = new ReferenceSetImpl(); rsi .setExternalReferences(new HashSet<ExternalReferenceSPI>( references)); T2Reference id = getGenerator(context).nextReferenceSetReference(); rsi.setTypedId(T2ReferenceImpl.getAsImpl(id)); try { referenceSetDao.store(rsi); return rsi; } catch (DaoException de) { throw new ReferenceSetServiceException(de); } } }
public IdentifiedList<T2Reference> registerEmptyList(int depth, ReferenceContext context) throws ListServiceException { if (depth < 1) { throw new ListServiceException("Can't register empty lists of depth " + depth); } checkDao(); checkGenerator(); T2ReferenceImpl newReference = T2ReferenceImpl .getAsImpl(t2ReferenceGenerator.nextListReference(false, depth, context)); T2ReferenceListImpl newList = new T2ReferenceListImpl(); newList.setTypedId(newReference); try { listDao.store(newList); return newList; } catch (DaoException de) { throw new ListServiceException(de); } }
public IdentifiedList<T2Reference> registerEmptyList(int depth, ReferenceContext context) throws ListServiceException { checkDao(); checkGenerator(); context = EmptyReferenceContext.checkContext(context); T2ReferenceImpl newReference = T2ReferenceImpl.getAsImpl(getGenerator( context).nextListReference(false, depth)); T2ReferenceListImpl newList = new T2ReferenceListImpl(); newList.setTypedId(newReference); try { listDao.store(newList); return newList; } catch (DaoException de) { throw new ListServiceException(de); } }
.getAsImpl(t2ReferenceGenerator.nextListReference( containsErrors, depth + 1, context)); newList.setTypedId(newReference);
.getAsImpl(t2ReferenceGenerator.nextListReference( containsErrors, depth + 1)); newList.setTypedId(newReference);
.getAsImpl(getGenerator(context).nextListReference( containsErrors, depth + 1)); newList.setTypedId(newReference);
T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
T2Reference ref = getGenerator(context).nextErrorDocumentReference( depth); T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
newList.add(resolveIdentifier(item, ensureTypes, context)); newList.setTypedId(T2ReferenceImpl.getAsImpl(id)); return newList; } catch (ListServiceException lse) {
newList.add(resolveIdentifier(item, ensureTypes, context)); newList.setTypedId(T2ReferenceImpl.getAsImpl(id)); return newList; } catch (ListServiceException lse) {