@Override public Collection<String> getPropertyKeys() { return new EmptyList<>(); }
@Override public Collection<CaoNode> getNodes(String key) { return new EmptyList<>(); }
@Override public Collection<String> getPropertyKeys() { return new EmptyList<>(); }
@Override public Collection<String> getNodeKeys() { return new EmptyList<>(); }
@Override public List<E> subList(int fromIndex, int toIndex) { return new EmptyList<>(); }
@Override public List<String> getPropertyKeys() { return new EmptyList<>(); }
@Override public Collection<String> getNodeKeys() { return new EmptyList<>(); }
@Override public Collection<String> getRenditions() { return new EmptyList<>(); }
@Override public Collection<String> getRenditions() { if (hasContent()) { return new EmptyList<>(); } return null; }
@Override public Collection<FileResource> getNodes(String key) { FileResource n = getNode(key); if (n == null) return new EmptyList<>(); LinkedList<FileResource> out = new LinkedList<>(); out.add(n); return out; }
@Override public Collection<String> getRenditions() { if (hasContent()) { // TODO if use meta collect list of renditions return new EmptyList<>(); } return null; }
@Override public Collection<String> getRenditions() { if (hasContent()) { // TODO if use meta collect list of renditions return new EmptyList<>(); } return null; }
/** * Split string into parts after length is reached. * * @param in * @param length * @return the split string into a collection */ public static Collection<String> splitCollection(String in, int length) { if (in == null) return new EmptyList<>(); LinkedList<String> out = new LinkedList<>(); while (in.length() > length) { out.add(in.substring(0,length)); in = in.substring(length); } if (in.length() > 0) out.add(in); return out; }