public static class TaxonomyPackageURIResolver.TaxonomyPackage
extends java.lang.Object
Constructor and Description |
---|
TaxonomyPackage(java.lang.String startPath,
java.io.File zipfileFile,
java.lang.String version,
java.util.Map<java.lang.String,TaxonomyPackageURIResolver.PackageByLangInfo> infoByLang,
java.util.Map<java.net.URI,java.lang.String> remappings,
java.util.Vector<TaxonomyPackageURIResolver.EntryPointHRefs> allEpHRefs)
Instantiates a new taxonomy package.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deleteFile()
Delete file.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Vector<TaxonomyPackageURIResolver.EntryPointHRefs> |
getAllEpHRefs()
Gets the all ep H refs.
|
java.util.Iterator<java.net.URI> |
getBases()
Gets the bases.
|
java.util.Collection<TaxonomyPackageURIResolver.EntryPointLangInfo> |
getEntryPoints()
Gets the entry points.
|
java.lang.String |
getIdentifier()
Gets the identifier.
|
java.util.Iterator<java.net.URI> |
getIterator()
Prepares an iterator over all files represented as the official
URL in order to allow the checker to verify the file existence
and compare content.
|
java.lang.String |
getLicenseHREF()
Gets the license HREF.
|
java.lang.String |
getLicenseName()
Gets the license name.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getNamespace()
Gets the namespace.
|
java.lang.String |
getPublicationDate()
Gets the publication date.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getPublisherByLang()
Gets the publisher by lang.
|
java.lang.String |
getPublisherCountry()
Gets the publisher country.
|
java.lang.String |
getPublisherURL()
Gets the publisher URL.
|
java.util.Collection<java.net.URI> |
getRemappings()
Gets the remappings.
|
java.lang.String |
getReplaceWith(java.net.URI prefix)
Gets the replace with.
|
java.lang.String |
getStartPath()
Access to the taxonomy package start path.
|
java.lang.String |
getSupersededTP()
Gets the superseded TP.
|
java.lang.String |
getVersion()
Gets the version.
|
java.lang.String |
getVersioningReports()
Gets the versioning reports.
|
java.lang.String |
getZipFile()
Gets the zip file.
|
int |
hashCode()
Hash code.
|
boolean |
isCheckMultipleRoot()
Checks if is check multiple root.
|
javax.xml.transform.Source |
resolve(java.lang.String absoluteOfficialURI)
Resolve.
|
javax.xml.transform.Source |
resolve(java.net.URI key,
java.lang.String absoluteOfficialURI)
Resolve.
|
void |
setCheckMultipleRoot(boolean b)
Sets the check multiple root.
|
void |
setIdentifier(java.lang.String identifier)
Sets the identifier.
|
void |
setLicenseHREF(java.lang.String licenseHREF)
Sets the license HREF.
|
void |
setLicenseName(java.lang.String licenseName)
Sets the license name.
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace.
|
void |
setOasisCatalog(java.lang.String oasisCatalogFile)
At this time it is required to load all rewriteURI entries in
the incoming catalog file and populate the remapingsByUri.
|
void |
setPublicationDate(java.lang.String publicationDate)
Sets the publication date.
|
void |
setPublisherByLang(java.util.HashMap<java.lang.String,java.lang.String> publisherByLang)
Sets the publisher by lang.
|
void |
setPublisherCountry(java.lang.String publisherCountry)
Sets the publisher country.
|
void |
setPublisherURL(java.lang.String publisherURL)
Sets the publisher URL.
|
void |
setSupersededTP(java.lang.String supersededTP)
Sets the superseded TP.
|
void |
setVersioningReports(java.lang.String versioningReports)
Sets the versioning reports.
|
public TaxonomyPackage(java.lang.String startPath, java.io.File zipfileFile, java.lang.String version, java.util.Map<java.lang.String,TaxonomyPackageURIResolver.PackageByLangInfo> infoByLang, java.util.Map<java.net.URI,java.lang.String> remappings, java.util.Vector<TaxonomyPackageURIResolver.EntryPointHRefs> allEpHRefs)
startPath
- the start pathzipfileFile
- the zipfile fileversion
- the versioninfoByLang
- the info by langremappings
- the remappingsallEpHRefs
- the all ep H refspublic java.util.Iterator<java.net.URI> getBases()
public java.util.Collection<java.net.URI> getRemappings()
public java.lang.String getReplaceWith(java.net.URI prefix)
prefix
- the prefixpublic java.lang.String getZipFile()
public java.lang.String getStartPath()
public javax.xml.transform.Source resolve(java.lang.String absoluteOfficialURI)
absoluteOfficialURI
- the absolute official URIpublic javax.xml.transform.Source resolve(java.net.URI key, java.lang.String absoluteOfficialURI)
key
- the keyabsoluteOfficialURI
- the absolute official URIpublic java.lang.String getVersion()
public java.lang.String getName()
public java.util.Vector<TaxonomyPackageURIResolver.EntryPointHRefs> getAllEpHRefs()
public java.util.Collection<TaxonomyPackageURIResolver.EntryPointLangInfo> getEntryPoints()
public boolean deleteFile()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objpublic void setOasisCatalog(java.lang.String oasisCatalogFile) throws TPValidationException
oasisCatalogFile
- the new oasis catalogTPValidationException
- the TP validation exceptionpublic void setIdentifier(java.lang.String identifier)
identifier
- the new identifierpublic java.lang.String getIdentifier()
public void setLicenseName(java.lang.String licenseName)
licenseName
- the new license namepublic java.lang.String getLicenseName()
public void setLicenseHREF(java.lang.String licenseHREF)
licenseHREF
- the new license HREFpublic java.lang.String getLicenseHREF()
public void setPublisherByLang(java.util.HashMap<java.lang.String,java.lang.String> publisherByLang)
publisherByLang
- the publisher by langpublic java.util.HashMap<java.lang.String,java.lang.String> getPublisherByLang()
public void setPublisherURL(java.lang.String publisherURL)
publisherURL
- the new publisher URLpublic java.lang.String getPublisherURL()
public void setPublisherCountry(java.lang.String publisherCountry)
publisherCountry
- the new publisher countrypublic java.lang.String getPublisherCountry()
public void setPublicationDate(java.lang.String publicationDate)
publicationDate
- the new publication datepublic java.lang.String getPublicationDate()
public void setSupersededTP(java.lang.String supersededTP)
supersededTP
- the new superseded TPpublic java.lang.String getSupersededTP()
public void setVersioningReports(java.lang.String versioningReports)
versioningReports
- the new versioning reportspublic void setNamespace(java.lang.String namespace)
namespace
- the namespace to set. The namespace is used to determine the specification versionpublic java.lang.String getNamespace()
public java.lang.String getVersioningReports()
public void setCheckMultipleRoot(boolean b)
b
- the new check multiple rootpublic boolean isCheckMultipleRoot()
public java.util.Iterator<java.net.URI> getIterator()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa