Package org.fcrepo.kernel.impl.models
Class NonRdfSourceDescriptionImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.FedoraResourceImpl
-
- org.fcrepo.kernel.impl.models.NonRdfSourceDescriptionImpl
-
- All Implemented Interfaces:
FedoraResource
,NonRdfSourceDescription
public class NonRdfSourceDescriptionImpl extends FedoraResourceImpl implements NonRdfSourceDescription
Implementation of a non-rdf source description- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
fedoraId, resourceFactory, transaction
-
-
Constructor Summary
Constructors Constructor Description NonRdfSourceDescriptionImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct a description resource
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FedoraResource
getDescribedResource()
Get the resource described by this resourceString
getId()
Get the fedora identifier for this resourceList<URI>
getSystemTypes(boolean forRdf)
Get only the system defined types from their RDF.RdfStream
getTriples()
Return the RDF properties for this resource.-
Methods inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescription, getEtagValue, getFedoraId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getSession, getStateToken, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource, resolveSystemTypes, setArchivalGroupId, setCreatedBy, setCreatedDate, setEtag, setInteractionModel, setIsArchivalGroup, setIsMemento, setLastModifiedBy, setLastModifiedDate, setMementoDatetime, setParentId, setStateToken, setTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescription, getEtagValue, getFedoraId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getStateToken, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
-
-
-
Constructor Detail
-
NonRdfSourceDescriptionImpl
public NonRdfSourceDescriptionImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct a description resource- Parameters:
fedoraID
- internal identifiertransaction
- transactionpSessionManager
- session managerresourceFactory
- resource factoryuserTypesCache
- the user types cache
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:FedoraResource
Get the fedora identifier for this resource- Specified by:
getId
in interfaceFedoraResource
- Overrides:
getId
in classFedoraResourceImpl
- Returns:
- the fedora identifier
-
getDescribedResource
public FedoraResource getDescribedResource()
Description copied from interface:FedoraResource
Get the resource described by this resource- Specified by:
getDescribedResource
in interfaceFedoraResource
- Overrides:
getDescribedResource
in classFedoraResourceImpl
- Returns:
- the resource being described
-
getSystemTypes
public List<URI> getSystemTypes(boolean forRdf)
Description copied from interface:FedoraResource
Get only the system defined types from their RDF.- Specified by:
getSystemTypes
in interfaceFedoraResource
- Overrides:
getSystemTypes
in classFedoraResourceImpl
- Parameters:
forRdf
- whether we only want types for displaying in a RDF body.- Returns:
- a list of types from the user provided RDF.
-
getTriples
public RdfStream getTriples()
Description copied from interface:FedoraResource
Return the RDF properties for this resource.- Specified by:
getTriples
in interfaceFedoraResource
- Overrides:
getTriples
in classFedoraResourceImpl
- Returns:
- the RDF properties of this object.
-
-