APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.catalog

pack-priv final Class DelegateUri

extends AltCatalog
Class Inheritance
Imports
java.net.URI

Represents a delegateURI entry.
Since
9

Field Summary

Modifier and TypeField and Description
pack-priv String
Inherited from javax.xml.catalog.AltCatalog:
catalogURI

Constructor Summary

AccessConstructor and Description
public
DelegateUri(String base, String
The uriStartString attribute.
uriStartString
,
String
The catalog attribute.
catalog
)

Construct a delegateURI entry.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The uriStartString
getURIStartString
()

Get the uriStartString attribute.

public String

Returns:

The URI of the catalog.
match
(String
The systemId to be matched.
systemId
)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

public URI

Returns:

The replacement URI if the match is successful, null if not.
matchURI
(String
The systemId to be matched.
systemId
,
int
The length of uriStartString of previous match if any.
currentMatch
)

Overrides javax.xml.catalog.AltCatalog.matchURI.

Matches the specified systemId with the entry.

public void
setURIStartString(String
The uriStartString attribute value.
uriStartString
)

Set the uriStartString attribute.

Inherited from javax.xml.catalog.AltCatalog:
getCatalogIdgetCatalogURIsetCatalog

Field Detail

uriStartStringback to summary
pack-priv String uriStartString

Constructor Detail

DelegateUriback to summary
public DelegateUri(String base, String uriStartString, String catalog)

Construct a delegateURI entry.

Parameters
uriStartString:String

The uriStartString attribute.

catalog:String

The catalog attribute.

Method Detail

getURIStartStringback to summary
public String getURIStartString()

Get the uriStartString attribute.

Returns:String

The uriStartString

matchback to summary
public String match(String systemId)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

Parameters
systemId:String

The systemId to be matched.

Returns:String

The URI of the catalog.

Annotations
@Override
matchURIback to summary
public URI matchURI(String systemId, int currentMatch)

Overrides javax.xml.catalog.AltCatalog.matchURI.

Matches the specified systemId with the entry. Return the match if it is successful and the length of the uriStartString is longer than the longest of any previous match.

Parameters
systemId:String

The systemId to be matched.

currentMatch:int

The length of uriStartString of previous match if any.

Returns:URI

The replacement URI if the match is successful, null if not.

Annotations
@Override
setURIStartStringback to summary
public void setURIStartString(String uriStartString)

Set the uriStartString attribute.

Parameters
uriStartString:String

The uriStartString attribute value.