public CompositeRepositoryState toState() { CompositeRepositoryState result = new CompositeRepositoryState(); result.setName(getName()); result.setType(getType()); result.setVersion(getVersion()); result.setLocation(getLocation()); result.setDescription(getDescription()); result.setProvider(getProvider()); result.setProperties(getProperties()); // it is important to directly access the field so we have the relative URIs result.setChildren(childrenURIs.toArray(new URI[childrenURIs.size()])); return result; }
public CompositeRepositoryState toState() { CompositeRepositoryState result = new CompositeRepositoryState(); result.setName(getName()); result.setType(getType()); result.setVersion(getVersion()); result.setLocation(getLocation()); result.setDescription(getDescription()); result.setProvider(getProvider()); result.setProperties(getProperties()); // it is important to directly access the field so we have the relative URIs result.setChildren(childrenURIs.toArray(new URI[childrenURIs.size()])); return result; }
public CompositeRepositoryState toState() { CompositeRepositoryState result = new CompositeRepositoryState(); result.setName(getName()); result.setType(getType()); result.setVersion(getVersion()); result.setLocation(getLocation()); result.setDescription(getDescription()); result.setProvider(getProvider()); result.setProperties(getProperties()); // it is important to directly access the field so we have the relative URIs result.setChildren(childrenURIs.toArray(new URI[childrenURIs.size()])); return result; }