@Test public void testPopulateRegion() { { Path container = new Path("test", EnumSet.of(Path.Type.directory)); container.attributes().setRegion("DFW"); Path path = new Path(container, "f", EnumSet.of(Path.Type.file)); assertEquals("DFW", path.attributes().getRegion()); } { Path container = new Path("test", EnumSet.of(Path.Type.directory)); container.attributes().setRegion("DFW"); assertEquals("DFW", container.attributes().getRegion()); } }
public PathAttributes attributes() { return attributes; }
Path extends AbstractPath implements Referenceable, Serializable { public PathAttributes attributes() { return attributes; } }
Path extends AbstractPath implements Referenceable, Serializable { public PathAttributes attributes() { return attributes; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); }
Path extends AbstractPath implements Referenceable, Serializable { public PathAttributes attributes() { return attributes; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); @Override T serialize(final Serializer dict); @Override EnumSet<Type> getType(); void setType(final EnumSet<Type> type); boolean isVolume(); boolean isDirectory(); boolean isPlaceholder(); boolean isFile(); boolean isSymbolicLink(); @Override char getDelimiter(); Path getParent(); PathAttributes attributes(); void setAttributes(final PathAttributes attributes); Path withAttributes(final PathAttributes attributes); @Override String getName(); @Override String getAbsolute(); Path getSymlinkTarget(); void setSymlinkTarget(final Path target); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); boolean isChild(final Path directory); }
Path extends AbstractPath implements Referenceable, Serializable { public PathAttributes attributes() { return attributes; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); @Override T serialize(final Serializer dict); @Override EnumSet<Type> getType(); void setType(final EnumSet<Type> type); boolean isVolume(); boolean isDirectory(); boolean isPlaceholder(); boolean isFile(); boolean isSymbolicLink(); @Override char getDelimiter(); Path getParent(); PathAttributes attributes(); void setAttributes(final PathAttributes attributes); Path withAttributes(final PathAttributes attributes); @Override String getName(); @Override String getAbsolute(); Path getSymlinkTarget(); void setSymlinkTarget(final Path target); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); boolean isChild(final Path directory); static final char DELIMITER; }