Package mil.nga.geopackage.dgiwg
Class GeoPackageFileName
- java.lang.Object
- 
- mil.nga.geopackage.dgiwg.GeoPackageFileName
 
- 
 public class GeoPackageFileName extends Object DGIWG (Defence Geospatial Information Working Group) GeoPackage File Name- Since:
- 6.6.0
- Author:
- osbornb
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDATE_FORMATDate formatstatic StringDELIMITER_ELEMENTSDelimiter between elementsstatic StringDELIMITER_SCALEDelimiter between zoom scalestatic StringDELIMITER_WORDSDelimiter between wordsstatic StringVERSION_PREFIXVersion prefix
 - 
Constructor SummaryConstructors Constructor Description GeoPackageFileName()ConstructorGeoPackageFileName(File file)ConstructorGeoPackageFileName(String name)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditional(String additional)Add an additional elementStringdelimitersToSpaces(String value)Replace word delimiters with spacesbooleanequals(Object obj)List<String>getAdditional()Get additional elementsDategetCreationDate()Get the creation dateStringgetCreationDateText()Get the creation date textStringgetDataProduct()Get the data productFilegetFile()Get a local file from the name with GeoPackage extensionStringgetGeographicCoverageArea()Get the geographic coverage areaIntegergetMajorVersion()Get the major versionIntegergetMinorVersion()Get the minor versionStringgetName()Get the file nameStringgetNameWithExtension()Get the file name with GeoPackage extensionStringgetProducer()Get the GeoPackage producerStringgetVersion()Get the versionIntegergetZoomLevel1()Get the zoom level part 1, max zoom or scale map unitsIntegergetZoomLevel2()Get the zoom level part 2, max zoom or scale surface unitsStringgetZoomLevels()Get the zoom levelsbooleanhasAdditional()Has additional elementsinthashCode()booleanhasMajorVersion()Has a major versionbooleanhasMinorVersion()Has a minor versionbooleanhasZoomLevel1()Has a zoom level part 1, max zoom or scale map unitsbooleanhasZoomLevel2()Has a zoom level part 2, max zoom or scale surface unitsStringinfo()Multiline file name information string with metadata headersbooleanisInformative()Determine if a complete informative file namevoidsetAdditional(List<String> additional)Set additional elementsvoidsetCreationDate(Date creationDate)Set the creation datevoidsetCreationDateText(String creationDateText)Set the creation date textvoidsetDataProduct(String dataProduct)Set the data productvoidsetGeographicCoverageArea(String geographicCoverageArea)Set the geographic coverage areavoidsetProducer(String producer)Set the GeoPackage producervoidsetVersion(int majorVersion, int minorVersion)Set the versionvoidsetVersion(String version)Set the versionvoidsetZoomLevelRange(int minZoom, int maxZoom)Set the zoom level rangevoidsetZoomLevels(String zoomLevels)Set the zoom levelsvoidsetZoomLevelScale(int mapUnits, int surfaceUnits)Set the zoom level map scaleStringtoString()
 
- 
- 
- 
Field Detail- 
DELIMITER_ELEMENTSpublic static final String DELIMITER_ELEMENTS Delimiter between elements- See Also:
- Constant Field Values
 
 - 
DELIMITER_WORDSpublic static final String DELIMITER_WORDS Delimiter between words- See Also:
- Constant Field Values
 
 - 
DELIMITER_SCALEpublic static final String DELIMITER_SCALE Delimiter between zoom scale- See Also:
- Constant Field Values
 
 - 
VERSION_PREFIXpublic static final String VERSION_PREFIX Version prefix- See Also:
- Constant Field Values
 
 - 
DATE_FORMATpublic static final String DATE_FORMAT Date format- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getProducerpublic String getProducer() Get the GeoPackage producer- Returns:
- producer
 
 - 
setProducerpublic void setProducer(String producer) Set the GeoPackage producer- Parameters:
- producer- producer
 
 - 
getDataProductpublic String getDataProduct() Get the data product- Returns:
- data product
 
 - 
setDataProductpublic void setDataProduct(String dataProduct) Set the data product- Parameters:
- dataProduct- data product
 
 - 
getGeographicCoverageAreapublic String getGeographicCoverageArea() Get the geographic coverage area- Returns:
- geographic coverage area
 
 - 
setGeographicCoverageAreapublic void setGeographicCoverageArea(String geographicCoverageArea) Set the geographic coverage area- Parameters:
- geographicCoverageArea- geographic coverage area
 
 - 
getZoomLevelspublic String getZoomLevels() Get the zoom levels- Returns:
- zoom levels
 
 - 
setZoomLevelspublic void setZoomLevels(String zoomLevels) Set the zoom levels- Parameters:
- zoomLevels- zoom levels
 
 - 
getZoomLevel1public Integer getZoomLevel1() Get the zoom level part 1, max zoom or scale map units- Returns:
- zoom level part 1
 
 - 
hasZoomLevel1public boolean hasZoomLevel1() Has a zoom level part 1, max zoom or scale map units- Returns:
- true if has zoom level part 1
 
 - 
getZoomLevel2public Integer getZoomLevel2() Get the zoom level part 2, max zoom or scale surface units- Returns:
- zoom level part 2
 
 - 
hasZoomLevel2public boolean hasZoomLevel2() Has a zoom level part 2, max zoom or scale surface units- Returns:
- true if has zoom level part 2
 
 - 
setZoomLevelRangepublic void setZoomLevelRange(int minZoom, int maxZoom)Set the zoom level range- Parameters:
- minZoom- min zoom level
- maxZoom- max zoom level
 
 - 
setZoomLevelScalepublic void setZoomLevelScale(int mapUnits, int surfaceUnits)Set the zoom level map scale- Parameters:
- mapUnits- scale map units
- surfaceUnits- scale surface units
 
 - 
getVersionpublic String getVersion() Get the version- Returns:
- version
 
 - 
setVersionpublic void setVersion(String version) Set the version- Parameters:
- version- version
 
 - 
getMajorVersionpublic Integer getMajorVersion() Get the major version- Returns:
- major version
 
 - 
hasMajorVersionpublic boolean hasMajorVersion() Has a major version- Returns:
- true if has major version
 
 - 
getMinorVersionpublic Integer getMinorVersion() Get the minor version- Returns:
- minor version
 
 - 
hasMinorVersionpublic boolean hasMinorVersion() Has a minor version- Returns:
- true if has minor version
 
 - 
setVersionpublic void setVersion(int majorVersion, int minorVersion)Set the version- Parameters:
- majorVersion- major version
- minorVersion- minor version
 
 - 
getCreationDateTextpublic String getCreationDateText() Get the creation date text- Returns:
- creation date text
 
 - 
setCreationDateTextpublic void setCreationDateText(String creationDateText) Set the creation date text- Parameters:
- creationDateText- creation date text
 
 - 
getCreationDatepublic Date getCreationDate() Get the creation date- Returns:
- creation date
 
 - 
setCreationDatepublic void setCreationDate(Date creationDate) Set the creation date- Parameters:
- creationDate- creation date
 
 - 
getAdditionalpublic List<String> getAdditional() Get additional elements- Returns:
- additional elements
 
 - 
hasAdditionalpublic boolean hasAdditional() Has additional elements- Returns:
- true if has additional elements
 
 - 
setAdditionalpublic void setAdditional(List<String> additional) Set additional elements- Parameters:
- additional- additional elements
 
 - 
addAdditionalpublic void addAdditional(String additional) Add an additional element- Parameters:
- additional- additional element
 
 - 
isInformativepublic boolean isInformative() Determine if a complete informative file name- Returns:
- true if informative
 
 - 
getNamepublic String getName() Get the file name- Returns:
- file name
 
 - 
getNameWithExtensionpublic String getNameWithExtension() Get the file name with GeoPackage extension- Returns:
- file name with extension
 
 - 
getFilepublic File getFile() Get a local file from the name with GeoPackage extension- Returns:
- file
 
 - 
delimitersToSpacespublic String delimitersToSpaces(String value) Replace word delimiters with spaces- Parameters:
- value- delimited value
- Returns:
- space replaced value
 
 - 
infopublic String info() Multiline file name information string with metadata headers- Returns:
- information string
- Since:
- 6.6.3
 
 
- 
 
-