Module: ADIWG::Mdtranslator::Writers::Simple_html

Defined in:
lib/adiwg/mdtranslator/writers/simple_html/version.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_date.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_head.rb,
lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_usage.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_domain.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_entity.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_extent.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_format.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_locale.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_medium.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_source.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_contact.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_feature.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_funding.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_graphic.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_keyword.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_lineage.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_measure.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_citation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_datetime.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_document.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_duration.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomy.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_algorithm.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_attribute.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_dimension.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_imageInfo.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_allocation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_constraint.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_domainItem.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_identifier.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_processing.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_timePeriod.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_boundingBox.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedData.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataQuality.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_distributor.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityIndex.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geologicAge.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_maintenance.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_processStep.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInstant.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_coverageInfo.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_distribution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataInfo.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_orderProcess.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceInfo.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_timeInterval.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorObject.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_releasability.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_taxonomyClass.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_attributeGroup.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_dataDictionary.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryObject.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_onlineResource.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_responsibility.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_temporalExtent.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_transferOption.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_classedDataItem.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityAttribute.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_legalConstraint.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicExtent.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_obliqueLinePoint.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialReference.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureCollection.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_featureProperties.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicElement.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_nominalResolution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialResolution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_associatedResource.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geodeticParameters.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geometryCollection.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_metadataRepository.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_securityConstraint.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_coordinateResolution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_projectionParameters.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_vectorRepresentation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_spatialRepresentation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_additionalDocumentation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_bearingDistanceResolution.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_referenceSystemParameters.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb,
lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb

Defined Under Namespace

Classes: Html_AdditionalDocumentation, Html_Algorithm, Html_Allocation, Html_AssociatedResource, Html_Attribute, Html_AttributeGroup, Html_BearingDistanceResolution, Html_Body, Html_BoundingBox, Html_Citation, Html_Constraint, Html_Contact, Html_CoordinateResolution, Html_CoverageInfo, Html_DataDictionary, Html_DataQuality, Html_Date, Html_Datetime, Html_Dimension, Html_Distribution, Html_Distributor, Html_Document, Html_Domain, Html_DomainItem, Html_Duration, Html_Entity, Html_EntityAttribute, Html_EntityForeignKey, Html_EntityIndex, Html_Extent, Html_Feature, Html_FeatureCollection, Html_FeatureProperty, Html_Format, Html_Funding, Html_GeodeticParameters, Html_GeographicElement, Html_GeographicExtent, Html_GeographicResolution, Html_GeologicAge, Html_GeometryCollection, Html_GeometryObject, Html_GeorectifiedRepresentation, Html_GeoreferenceableRepresentation, Html_Graphic, Html_GridRepresentation, Html_Head, Html_Identifier, Html_ImageInfo, Html_Keyword, Html_LegalConstraint, Html_Lineage, Html_Locale, Html_Maintenance, Html_Measure, Html_Medium, Html_MetadataInfo, Html_NominalResolution, Html_ObliqueLinePoint, Html_OnlineResource, Html_OrderProcess, Html_ProcessStep, Html_ProcessStepReport, Html_Processing, Html_ProjectionParameters, Html_RangeElementDescription, Html_ReferenceSystemParameters, Html_Releasability, Html_Repository, Html_ResourceInfo, Html_ResourceType, Html_Responsibility, Html_Scope, Html_ScopeDescription, Html_SecurityConstraint, Html_Source, Html_SpatialReference, Html_SpatialRepresentation, Html_SpatialResolution, Html_Taxonomy, Html_TaxonomyClass, Html_TemporalExtent, Html_TimeInstant, Html_TimeInterval, Html_TimePeriod, Html_TransferOption, Html_Usage, Html_VectorObject, Html_VectorRepresentation, Html_VerticalDatumParameters, Html_VerticalExtent, MdHtmlClassedData, MdHtmlClassedDataItem, MdHtmlResourceFormat

Constant Summary collapse

VERSION =

current version of html writer

'2.1.0'

Class Method Summary collapse

Class Method Details

.startWriter(intObj, responseObj) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/adiwg/mdtranslator/writers/simple_html/simple_html_writer.rb', line 18

def self.startWriter(intObj, responseObj)

   # set the format and version of the output file
   responseObj[:writerOutputFormat] = 'html'
   responseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::Simple_html::VERSION

   # create new HTML document
   html = Builder::XmlMarkup.new(indent: 3)
   # metadataWriter = MdHtmlWriter.new(html, intObj, paramsObj)
   htmlDocument = Html_Document.new(html, intObj)
    = htmlDocument.writeHtml(responseObj)

   # set writer pass to true if no messages
   # false or warning will be set by code that places the message
   if responseObj[:writerMessages].empty?
      responseObj[:writerPass] = true
   end

   return 

end