|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.cap.metadata.impl.AbstractECMetadata
org.entityfs.cap.metadata.impl.ECNamedMetadataImpl
public class ECNamedMetadataImpl
Constructor Summary | |
---|---|
ECNamedMetadataImpl(EntityImplementation parent,
MetadataEnablingEntityDelegate delegate)
|
Method Summary | |
---|---|
void |
deleteMetadataFile(String name)
Delete the named metadata file. |
ReadWritableFile |
getMetadataFile(String name)
Get the named metadata file. |
Set<String> |
getMetadataFileNames()
Get a set containing all metadata file names for the entity. |
boolean |
hasMetadataFile(String name)
Check if the entity has a metadata file with the supplied name. |
ReadWritableFile |
newMetadataFile(String name)
Create a new metadata file. |
Methods inherited from class org.entityfs.cap.metadata.impl.AbstractECMetadata |
---|
getEntity, getParentEntity, isValid, prepareForRead, prepareForWrite |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.entityfs.cap.EntityCapability |
---|
getEntity, isValid |
Constructor Detail |
---|
public ECNamedMetadataImpl(EntityImplementation parent, MetadataEnablingEntityDelegate delegate)
Method Detail |
---|
public Set<String> getMetadataFileNames()
ECNamedMetadata
getMetadataFileNames
in interface ECNamedMetadata
null
.public boolean hasMetadataFile(String name)
ECNamedMetadata
hasMetadataFile
in interface ECNamedMetadata
name
- The name of the metadata file to look for. This name is
case-sensitive.
true
if the entity has a metadata file with the supplied
name, false
if not.public ReadWritableFile getMetadataFile(String name) throws EntityNotFoundException
ECNamedMetadata
getMetadataFile
in interface ECNamedMetadata
name
- The name of the metadata file. This must be a valid file name
in the backing file system.
EntityNotFoundException
- If no metadata file with the supplied
name exists for the entity.public ReadWritableFile newMetadataFile(String name) throws EntityFoundException, ReadOnlyException
newMetadataFile
in interface ECNamedMetadata
name
- The name of the metadata file. This must be a valid file name
in the backing file system.
EntityFoundException
- If the entity already has a metadata file
with the supplied name.
ReadOnlyException
- If the file system is read only.public void deleteMetadataFile(String name) throws EntityNotFoundException, ReadOnlyException
deleteMetadataFile
in interface ECNamedMetadata
name
- The name of the metadata file.
EntityNotFoundException
- If no such metadata file exists.
ReadOnlyException
- If the file system is read only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |