private ExtendedAttributeView getFileAttributeView(final JGitPathImpl path, final String name, final LinkOption... options) { final ExtendedAttributeView view = path.getAttrView(name); if (view == null) { if (name.equals("basic")) { final JGitBasicAttributeView newView = new JGitBasicAttributeView(path); path.addAttrView(newView); return newView; } else if (name.equals("extended")) { final JGitHiddenAttributeView newView = new JGitHiddenAttributeView(path); path.addAttrView(newView); return newView; } else if (name.equals("version")) { final JGitVersionAttributeView newView = new JGitVersionAttributeView(path); path.addAttrView(newView); return newView; } } return view; }
@Override public HiddenAttributes readAttributes() throws IOException { if (attrs == null) { attrs = buildAttrs(path.getFileSystem(), path.getRefTree(), path.getPath()); } return attrs; }
JGitHiddenAttributeView.class, options); return (A) view.readAttributes(); } else if (type == BasicFileAttributesImpl.class || type == BasicFileAttributes.class) { final JGitBasicAttributeView view = getFileAttributeView(path,
return newView; } else if (type == HiddenAttributeView.class || type == JGitHiddenAttributeView.class) { final V newView = (V) new JGitHiddenAttributeView(gPath); gPath.addAttrView(newView); return newView;