public NSDate getCreationDate() { if (has(NSFileAttribute.CreationDate)) { NSDate val = (NSDate) get(NSFileAttribute.CreationDate); return val; } return null; } public NSFileAttributes setCreationDate(NSDate creationDate) {
public NSDate getModificationDate() { if (has(NSFileAttribute.ModificationDate)) { NSDate val = (NSDate) get(NSFileAttribute.ModificationDate); return val; } return null; } public NSFileAttributes setModificationDate(NSDate modificationDate) {
public long getDeviceIdentifier() { if (has(NSFileAttribute.DeviceIdentifier)) { NSNumber val = (NSNumber) get(NSFileAttribute.DeviceIdentifier); return val.longValue(); } return 0; } public NSFileAttributes setDeviceIdentifier(long deviceIdentifier) {
public long getSystemFileNumber() { if (has(NSFileAttribute.SystemFileNumber)) { NSNumber val = (NSNumber) get(NSFileAttribute.SystemFileNumber); return val.longValue(); } return 0; } public NSFileAttributes setSystemFileNumber(long systemFileNumber) {
public boolean isExtensionHidden() { if (has(NSFileAttribute.ExtensionHidden)) { NSNumber val = (NSNumber) get(NSFileAttribute.ExtensionHidden); return val.booleanValue(); } return false; } public NSFileAttributes setExtensionHidden(boolean extensionHidden) {
public String getGroupOwnerAccountName() { if (has(NSFileAttribute.GroupOwnerAccountName)) { NSString val = (NSString) get(NSFileAttribute.GroupOwnerAccountName); return val.toString(); } return null; } public NSFileAttributes setGroupOwnerAccountName(String groupOwnerAccountName) {
public short getPosixPermissions() { if (has(NSFileAttribute.PosixPermissions)) { NSNumber val = (NSNumber) get(NSFileAttribute.PosixPermissions); return val.shortValue(); } return 0; } public NSFileAttributes setPosixPermissions(short posixPermissions) {
public boolean appendsOnly() { if (has(NSFileAttribute.AppendOnly)) { NSNumber val = (NSNumber) get(NSFileAttribute.AppendOnly); return val.booleanValue(); } return false; } public NSFileAttributes setAppendsOnly(boolean appendsOnly) {
public long getHFSTypeCode() { if (has(NSFileAttribute.HFSTypeCode)) { NSNumber val = (NSNumber) get(NSFileAttribute.HFSTypeCode); return val.longValue(); } return 0; } public NSFileAttributes setHFSTypeCode(long hFSTypeCode) {
public boolean isImmutable() { if (has(NSFileAttribute.Immutable)) { NSNumber val = (NSNumber) get(NSFileAttribute.Immutable); return val.booleanValue(); } return false; } public NSFileAttributes setImmutable(boolean immutable) {
public long getGroupOwnerAccountID() { if (has(NSFileAttribute.GroupOwnerAccountID)) { NSNumber val = (NSNumber) get(NSFileAttribute.GroupOwnerAccountID); return val.longValue(); } return 0; } public NSFileAttributes setGroupOwnerAccountID(long groupOwnerAccountID) {
public NSObject get(NSFileAttribute key) { if (has(key)) { return data.get(key.value()); } return null; } public NSFileAttributes set(NSFileAttribute key, NSObject value) {
public NSFileType getType() { if (has(NSFileAttribute.Type)) { NSString val = (NSString) get(NSFileAttribute.Type); return NSFileType.valueOf(val); } return null; } public NSFileAttributes setType(NSFileType type) {
public long getSize() { if (has(NSFileAttribute.Size)) { NSNumber val = (NSNumber) get(NSFileAttribute.Size); return val.longValue(); } return 0; } public NSFileAttributes setSize(long size) {
public long getOwnerAccountID() { if (has(NSFileAttribute.OwnerAccountID)) { NSNumber val = (NSNumber) get(NSFileAttribute.OwnerAccountID); return val.longValue(); } return 0; } public NSFileAttributes setOwnerAccountID(long ownerAccountID) {
/** * @since Available in iOS 4.0 and later. */ public NSFileProtection getProtection() { if (has(NSFileAttribute.ProtectionKey)) { NSString val = (NSString) get(NSFileAttribute.ProtectionKey); return NSFileProtection.valueOf(val); } return null; } /**
public long getReferenceCount() { if (has(NSFileAttribute.ReferenceCount)) { NSNumber val = (NSNumber) get(NSFileAttribute.ReferenceCount); return val.longValue(); } return 0; } public NSFileAttributes setReferenceCount(long referenceCount) {
public String getOwnerAccountName() { if (has(NSFileAttribute.OwnerAccountName)) { NSString val = (NSString) get(NSFileAttribute.OwnerAccountName); return val.toString(); } return null; } public NSFileAttributes setOwnerAccountName(String ownerAccountName) {
public long getHFSCreatorCode() { if (has(NSFileAttribute.HFSCreatorCode)) { NSNumber val = (NSNumber) get(NSFileAttribute.HFSCreatorCode); return val.longValue(); } return 0; } public NSFileAttributes setHFSCreatorCode(long hFSCreatorCode) {
public boolean isBusy() { if (has(NSFileAttribute.Busy)) { NSNumber val = (NSNumber) get(NSFileAttribute.Busy); return val.booleanValue(); } return false; } public NSFileAttributes setBusy(boolean busy) {