class CatalogScope extends Catalog
CatalogScope is an enhancement of Catalog with the following capabilities: - parseCatalog(URL) tracks successfully parsed catalog or reliably throws IOException. - getParsedCatalogs() reports successfully parsed catalogs - entries() provides access to the catalog entries read across all catalogs successfully parsed. - localFilesScope(predicate) based on the catalog rewrite rules, finds all resolvable files that match the predicate.
- See also
https://xerces.apache.org/xml-commons/components/apidocs/resolver/org/apache/xml/resolver/Catalog.html
- Grouped
- Alphabetic
- By Inheritance
- CatalogScope
- Catalog
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CatalogScope()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from CatalogScope to any2stringadd[CatalogScope] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (CatalogScope, B)
- Implicit
- This member is added by an implicit conversion from CatalogScope to ArrowAssoc[CatalogScope] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addDelegate(arg0: CatalogEntry): Unit
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
def
addEntry(arg0: CatalogEntry): Unit
- Definition Classes
- Catalog
-
def
addReader(arg0: String, arg1: CatalogReader): Unit
- Definition Classes
- Catalog
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
copyReaders(arg0: Catalog): Unit
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
def
encodedByte(arg0: Int): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
def
ensuring(cond: (CatalogScope) ⇒ Boolean, msg: ⇒ Any): CatalogScope
- Implicit
- This member is added by an implicit conversion from CatalogScope to Ensuring[CatalogScope] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (CatalogScope) ⇒ Boolean): CatalogScope
- Implicit
- This member is added by an implicit conversion from CatalogScope to Ensuring[CatalogScope] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): CatalogScope
- Implicit
- This member is added by an implicit conversion from CatalogScope to Ensuring[CatalogScope] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): CatalogScope
- Implicit
- This member is added by an implicit conversion from CatalogScope to Ensuring[CatalogScope] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
entries(): Seq[CatalogEntry]
Get the catalog entries read from the successfully parsed catalogs.
Get the catalog entries read from the successfully parsed catalogs.
- returns
catalog entries a
- See also
https://xerces.apache.org/xml-commons/components/apidocs/resolver/org/apache/xml/resolver/CatalogEntry.html
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fixSlashes(arg0: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from CatalogScope to StringFormat[CatalogScope] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getCatalogManager(): CatalogManager
- Definition Classes
- Catalog
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCurrentBase(): String
- Definition Classes
- Catalog
-
def
getDefaultOverride(): String
- Definition Classes
- Catalog
-
def
getParsedCatalogs(): Set[Path]
Get the successfully parsed catalogs.
-
def
hasParsedCatalog(catFile: Path): Boolean
Has this catalog been successfully parsed?
Has this catalog been successfully parsed?
- catFile
catalog
- returns
whether this catalog url has been successfully parsed already
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
iri2file(localScopeFiles: Map[Path, (Path, String)], predicate: CatalogEntryFilePredicate): Map[String, Path]
Converts localFileScope() to map of IRI and corresponding local file.
Converts localFileScope() to map of IRI and corresponding local file.
- returns
Uses the "uriStartString" from the localFileScope() results to reconstruct IRIs corresponding to catalog-resolved local files.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadSystemCatalogs(): Unit
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
localFileScope(predicate: CatalogEntryFilePredicate): Map[Path, (Path, String)]
Local file paths resolvable given the org.apache.xml.resolver.CatalogEntry rules according to a predicate.
Local file paths resolvable given the org.apache.xml.resolver.CatalogEntry rules according to a predicate.
- returns
A map of local files to the longest "uriStartString" with which it was resolved from the corresponding "rewritePrefix" based on the predicate.
-
def
makeAbsolute(arg0: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newCatalog(): Catalog
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
def
normalizeURI(arg0: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parseAllCatalogs(): Unit
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
parseCatalog(url: URL): Unit
Keeps track of successfully parsed catalog files.
Keeps track of successfully parsed catalog files.
- url
The URL for an absolute path to a catalog file.
- Definition Classes
- CatalogScope → Catalog
- Exceptions thrown
java.io.IOException
if the underlying library silently fails to parse a catalog.
-
def
parseCatalog(arg0: String, arg1: InputStream): Unit
- Definition Classes
- Catalog
- Annotations
- @throws( ... ) @throws( classOf[java.io.IOException] )
-
def
parseCatalog(arg0: String): Unit
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
parseCatalogFile(arg0: String): Unit
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
- Annotations
- @throws( ... ) @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
parsePendingCatalogs(): Unit
Unfortunately, there are circumstances where parsing a catalog fails silently without an exception thrown.
Unfortunately, there are circumstances where parsing a catalog fails silently without an exception thrown. One way to detect this condition is to check whether parsePendingCatalogs() has been called during the execution of parseCatalog(URL).
- Attributes
- protected
- Definition Classes
- CatalogScope → Catalog
-
val
parsedCatalogs: HashSet[Path]
- Attributes
- protected
-
def
resolveDoctype(arg0: String, arg1: String, arg2: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveDocument(): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveEntity(arg0: String, arg1: String, arg2: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveLocalPublic(arg0: Int, arg1: String, arg2: String, arg3: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveLocalSystem(arg0: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveLocalURI(arg0: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveNotation(arg0: String, arg1: String, arg2: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolvePublic(arg0: String, arg1: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveSubordinateCatalogs(arg0: Int, arg1: String, arg2: String, arg3: String): String
- Attributes
- protected[org.apache.xml.resolver]
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveSystem(arg0: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveURI(arg0: String): String
- Definition Classes
- Catalog
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( ... )
-
def
resolveURIWithExtension(uri: String, extension: String): Option[Path]
Resolves a URI stripped of the trailing '/', if any, with the extension appended to a file path.
Resolves a URI stripped of the trailing '/', if any, with the extension appended to a file path. The resolved path may or may not be an existing file.
- uri
uri should match one of the catalog rewrite uri start prefixes to resolve to a file path.
- extension
file extension, starting with '.'
- returns
A resolved file path, if the uri matches a rewrite rule
-
def
setCatalogManager(arg0: CatalogManager): Unit
- Definition Classes
- Catalog
-
def
setupReaders(): Unit
- Definition Classes
- Catalog
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unknownEntry(arg0: Vector): Unit
- Definition Classes
- Catalog
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (CatalogScope, B)
- Implicit
- This member is added by an implicit conversion from CatalogScope to ArrowAssoc[CatalogScope] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Enhanced Apache XML Commons Resolver API
gov.nasa.jpl.imce.xml.catalog.scope.CatalogScopeManager
gov.nasa.jpl.imce.xml.catalog.scope.CatalogScope
gov.nasa.jpl.imce.xml.catalog.scope.CatalogEntryFilePredicate