|
39 | 39 | public class PathAttributes extends Attributes implements Serializable { |
40 | 40 | private static final Logger log = LogManager.getLogger(PathAttributes.class); |
41 | 41 |
|
42 | | - public static final PathAttributes EMPTY = new PathAttributes(); |
43 | | - |
44 | 42 | /** |
45 | 43 | * The file length |
46 | 44 | */ |
@@ -716,4 +714,166 @@ public String toString() { |
716 | 714 | sb.append('}'); |
717 | 715 | return sb.toString(); |
718 | 716 | } |
| 717 | + |
| 718 | + public static final PathAttributes EMPTY = new PathAttributes() { |
| 719 | + @Override |
| 720 | + public <T> T serialize(final Serializer<T> dict) { |
| 721 | + return super.serialize(dict); |
| 722 | + } |
| 723 | + |
| 724 | + @Override |
| 725 | + public PathAttributes setSize(final long size) { |
| 726 | + return this; |
| 727 | + } |
| 728 | + |
| 729 | + @Override |
| 730 | + public PathAttributes setQuota(final Quota.Space quota) { |
| 731 | + return this; |
| 732 | + } |
| 733 | + |
| 734 | + @Override |
| 735 | + public PathAttributes setModificationDate(final long millis) { |
| 736 | + return this; |
| 737 | + } |
| 738 | + |
| 739 | + @Override |
| 740 | + public PathAttributes setCreationDate(final long millis) { |
| 741 | + return this; |
| 742 | + } |
| 743 | + |
| 744 | + @Override |
| 745 | + public PathAttributes setAccessedDate(final long millis) { |
| 746 | + return this; |
| 747 | + } |
| 748 | + |
| 749 | + @Override |
| 750 | + public PathAttributes setPermission(final Permission p) { |
| 751 | + return this; |
| 752 | + } |
| 753 | + |
| 754 | + @Override |
| 755 | + public PathAttributes setAcl(final Acl acl) { |
| 756 | + return this; |
| 757 | + } |
| 758 | + |
| 759 | + @Override |
| 760 | + public PathAttributes setOwner(final String o) { |
| 761 | + return this; |
| 762 | + } |
| 763 | + |
| 764 | + @Override |
| 765 | + public PathAttributes setGroup(final String g) { |
| 766 | + return this; |
| 767 | + } |
| 768 | + |
| 769 | + @Override |
| 770 | + public PathAttributes setChecksum(final Checksum checksum) { |
| 771 | + return this; |
| 772 | + } |
| 773 | + |
| 774 | + @Override |
| 775 | + public PathAttributes setETag(final String etag) { |
| 776 | + return this; |
| 777 | + } |
| 778 | + |
| 779 | + @Override |
| 780 | + public PathAttributes setStorageClass(final String storageClass) { |
| 781 | + return this; |
| 782 | + } |
| 783 | + |
| 784 | + @Override |
| 785 | + public PathAttributes setEncryption(final Encryption.Algorithm encryption) { |
| 786 | + return this; |
| 787 | + } |
| 788 | + |
| 789 | + @Override |
| 790 | + public PathAttributes setVersionId(final String versionId) { |
| 791 | + return this; |
| 792 | + } |
| 793 | + |
| 794 | + @Override |
| 795 | + public PathAttributes setFileId(final String fileId) { |
| 796 | + return this; |
| 797 | + } |
| 798 | + |
| 799 | + @Override |
| 800 | + public PathAttributes setLockId(final String lockId) { |
| 801 | + return this; |
| 802 | + } |
| 803 | + |
| 804 | + @Override |
| 805 | + public PathAttributes setDirectoryId(final String directoryId) { |
| 806 | + return this; |
| 807 | + } |
| 808 | + |
| 809 | + @Override |
| 810 | + public PathAttributes setRevision(final Long revision) { |
| 811 | + return this; |
| 812 | + } |
| 813 | + |
| 814 | + @Override |
| 815 | + public PathAttributes setDecrypted(final Path decrypted) { |
| 816 | + return this; |
| 817 | + } |
| 818 | + |
| 819 | + @Override |
| 820 | + public PathAttributes setEncrypted(final Path encrypted) { |
| 821 | + return this; |
| 822 | + } |
| 823 | + |
| 824 | + @Override |
| 825 | + public PathAttributes setVault(final Path vault) { |
| 826 | + return this; |
| 827 | + } |
| 828 | + |
| 829 | + @Override |
| 830 | + public PathAttributes setDuplicate(final boolean duplicate) { |
| 831 | + return this; |
| 832 | + } |
| 833 | + |
| 834 | + @Override |
| 835 | + public PathAttributes setHidden(final boolean hidden) { |
| 836 | + return this; |
| 837 | + } |
| 838 | + |
| 839 | + @Override |
| 840 | + public PathAttributes setTrashed(final boolean trashed) { |
| 841 | + return this; |
| 842 | + } |
| 843 | + |
| 844 | + @Override |
| 845 | + public PathAttributes setMetadata(final Map<String, String> metadata) { |
| 846 | + return this; |
| 847 | + } |
| 848 | + |
| 849 | + @Override |
| 850 | + public PathAttributes setRegion(final String region) { |
| 851 | + return this; |
| 852 | + } |
| 853 | + |
| 854 | + @Override |
| 855 | + public PathAttributes setDisplayname(final String displayname) { |
| 856 | + return this; |
| 857 | + } |
| 858 | + |
| 859 | + @Override |
| 860 | + public PathAttributes setLink(final DescriptiveUrl link) { |
| 861 | + return this; |
| 862 | + } |
| 863 | + |
| 864 | + @Override |
| 865 | + public PathAttributes setCustom(final Map<String, String> custom) { |
| 866 | + return this; |
| 867 | + } |
| 868 | + |
| 869 | + @Override |
| 870 | + public PathAttributes setCustom(final String key, final String value) { |
| 871 | + return this; |
| 872 | + } |
| 873 | + |
| 874 | + @Override |
| 875 | + public PathAttributes setVerdict(final Verdict verdict) { |
| 876 | + return this; |
| 877 | + } |
| 878 | + }; |
719 | 879 | } |
0 commit comments