NodeId id = getId(); nodeInfo = new NodeInfoImpl(getPath(), id, index, primaryTypeName, mixins.toArray(new Name[mixins.size()]), Iterators.<PropertyId>empty(), getPropertyIds(), includeChildInfos ? getChildInfos() : null);
NodeId id = getId(); nodeInfo = new NodeInfoImpl(getPath(), id, index, primaryTypeName, mixins.toArray(new Name[mixins.size()]), Iterators.<PropertyId>empty(), getPropertyIds(), includeChildInfos ? getChildInfos() : null);
private Path getPath() throws RepositoryException { if (localName == null && name == null) { throw new IllegalStateException("Name not set"); } if (parent == null && parentPath == null) { return PathFactoryImpl.getInstance().getRootPath(); } else { Path path = parentPath == null ? parent.getPath() : parentPath; if (name == null) { String ns = namespace == null ? Name.NS_DEFAULT_URI : namespace; name = NameFactoryImpl.getInstance().create(ns, localName); } return PathFactoryImpl.getInstance().create(path, name, true); } }
private Path getPath() throws RepositoryException { if (localName == null && name == null) { throw new IllegalStateException("Name not set"); } if (parent == null && parentPath == null) { return PathFactoryImpl.getInstance().getRootPath(); } else { Path path = parentPath == null ? parent.getPath() : parentPath; if (name == null) { String ns = namespace == null ? Name.NS_DEFAULT_URI : namespace; name = NameFactoryImpl.getInstance().create(ns, localName); } return PathFactoryImpl.getInstance().create(path, name, true); } }
private NodeId getId() throws RepositoryException { if (uuid == null) { return IdFactoryImpl.getInstance().createNodeId((String) null, getPath()); } else { return IdFactoryImpl.getInstance().createNodeId(uuid); } }
private NodeId getId() throws RepositoryException { if (uuid == null) { return IdFactoryImpl.getInstance().createNodeId((String) null, getPath()); } else { return IdFactoryImpl.getInstance().createNodeId(uuid); } }