/** * Print the contents of this list for vaguely human readable debug * porpoises. */ @Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append(this.getId().toString() + "\n"); int counter = 0; for (T2Reference ref : listDelegate) { sb.append(" " + (++counter) + ") " + ref.toString() + "\n"); } return sb.toString(); }
throw new ListServiceException("Can't register list of depth less than 1, but first item " + items.get(0) + " has depth " + depth); T2ReferenceListImpl newList = new T2ReferenceListImpl(); int counter = 0; for (T2Reference ref : items) { newList.add(ref); counter++; .getAsImpl(t2ReferenceGenerator.nextListReference( containsErrors, depth + 1, context)); newList.setTypedId(newReference); listDao.store(newList); return newList;
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); } }
T2ReferenceListImpl newList = new T2ReferenceListImpl(); int counter = 0; for (T2Reference ref : items) { newList.add(ref); counter++; .getAsImpl(t2ReferenceGenerator.nextListReference( containsErrors, depth + 1)); newList.setTypedId(newReference); listDao.store(newList); return newList;
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); } }
T2ReferenceListImpl newList = new T2ReferenceListImpl(); int counter = 0; for (T2Reference ref : items) { newList.add(ref); counter++; .getAsImpl(getGenerator(context).nextListReference( containsErrors, depth + 1)); newList.setTypedId(newReference); listDao.store(newList); return newList;
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); } }
/** * Print the contents of this list for vaguely human readable debug * porpoises. */ @Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append(this.getId().toString() + "\n"); int counter = 0; for (T2Reference ref : listDelegate) { sb.append(" " + (++counter) + ") " + ref.toString() + "\n"); } return sb.toString(); }
listReference.setReferenceType(T2ReferenceType.IdentifiedList); T2ReferenceListImpl l = new T2ReferenceListImpl(); itemId2.setLocalPart("item2"); l.add(itemId1); l.add(itemId2); l.setTypedId(listReference);
/** * Print the contents of this list for vaguely human readable debug * porpoises. */ @Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append(this.getId().toString() + "\n"); int counter = 0; for (T2Reference ref : listDelegate) { sb.append(" " + (++counter) + ") " + ref.toString() + "\n"); } return sb.toString(); }
listReference.setReferenceType(T2ReferenceType.IdentifiedList); T2ReferenceListImpl l = new T2ReferenceListImpl(); itemId2.setLocalPart("item2"); l.add(itemId1); l.add(itemId2); l.setTypedId(listReference);