EcohydroLib  1.29
Public Member Functions | Public Attributes | List of all members
ecohydrolib.metadata.AssetProvenance Class Reference
Inheritance diagram for ecohydrolib.metadata.AssetProvenance:
ecohydrolib.metadata.MetadataEntity ecohydrolib.metadata.MetadataEntity

Public Member Functions

def __init__
 
def writeToMetadata (self, context)
 Write AssetProvenance data to provenance section of metadata for a given project directory. More...
 
def readFromMetadata (cls, context, fqId)
 Read AssetProvenance data from provenance section of metadata for a given project directory. More...
 
def __init__
 
def writeToMetadata (self, context)
 Write AssetProvenance data to provenance section of metadata for a given project directory. More...
 
def readFromMetadata (cls, context, fqId)
 Read AssetProvenance data from provenance section of metadata for a given project directory. More...
 

Public Attributes

 section
 
 name
 
 dcIdentifier
 
 dcSource
 
 dcTitle
 
 dcDate
 
 dcPublisher
 
 dcDescription
 
 processingNotes
 

Additional Inherited Members

Constructor & Destructor Documentation

def ecohydrolib.metadata.AssetProvenance.__init__ (   self,
  section = None 
)
def ecohydrolib.metadata.AssetProvenance.__init__ (   self,
  section = None 
)

Member Function Documentation

def ecohydrolib.metadata.AssetProvenance.readFromMetadata (   cls,
  context,
  fqId 
)

Read AssetProvenance data from provenance section of metadata for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be read from
fqIdString representing the fully qualified ID of the asset: <section>_<name>
Returns
A new AssetProvenance instance with data populated from metadata

KeyError if required field is not in metadata

def ecohydrolib.metadata.AssetProvenance.readFromMetadata (   cls,
  context,
  fqId 
)

Read AssetProvenance data from provenance section of metadata for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be read from
fqIdString representing the fully qualified ID of the asset: <section>_<name>
Returns
A new AssetProvenance instance with data populated from metadata

KeyError if required field is not in metadata

def ecohydrolib.metadata.AssetProvenance.writeToMetadata (   self,
  context 
)

Write AssetProvenance data to provenance section of metadata for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be written to
Exceptions
Exceptionif section is not a valid GenericMetadata section
def ecohydrolib.metadata.AssetProvenance.writeToMetadata (   self,
  context 
)

Write AssetProvenance data to provenance section of metadata for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be written to
Exceptions
Exceptionif section is not a valid GenericMetadata section

Member Data Documentation

ecohydrolib.metadata.AssetProvenance.dcDate
ecohydrolib.metadata.AssetProvenance.dcDescription
ecohydrolib.metadata.AssetProvenance.dcIdentifier
ecohydrolib.metadata.AssetProvenance.dcPublisher
ecohydrolib.metadata.AssetProvenance.dcSource
ecohydrolib.metadata.AssetProvenance.dcTitle
ecohydrolib.metadata.AssetProvenance.name
ecohydrolib.metadata.AssetProvenance.processingNotes
ecohydrolib.metadata.AssetProvenance.section

The documentation for this class was generated from the following file: