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

pack-priv final Class DelegatePublic

extends AltCatalog
Class Inheritance
Imports
java.net.URI

Represents a delegatePublic 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
DelegatePublic(String base, String
The publicIdStartString attribute.
startString
,
String
The catalog attribute.
catalog
)

Construct a delegatePublic entry.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The publicIdStartString
getPublicIdStartString
()

Get the publicIdStartString attribute.

public String

Returns:

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

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified publicId with the entry.

public URI

Returns:

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

Overrides javax.xml.catalog.AltCatalog.matchURI.

Try to match the specified publicId with the entry.

public void
setPublicIdStartString(String
The publicIdStartString attribute value.
startString
)

Set the publicIdStartString attribute.

Inherited from javax.xml.catalog.AltCatalog:
getCatalogIdgetCatalogURIsetCatalog

Field Detail

publicIdStartStringback to summary
pack-priv String publicIdStartString

Constructor Detail

DelegatePublicback to summary
public DelegatePublic(String base, String startString, String catalog)

Construct a delegatePublic entry.

Parameters
startString:String

The publicIdStartString attribute.

catalog:String

The catalog attribute.

Method Detail

getPublicIdStartStringback to summary
public String getPublicIdStartString()

Get the publicIdStartString attribute.

Returns:String

The publicIdStartString

matchback to summary
public String match(String publicId)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified publicId with the entry.

Parameters
publicId:String

The publicId to be matched.

Returns:String

The URI of the catalog.

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

Overrides javax.xml.catalog.AltCatalog.matchURI.

Try to match the specified publicId with the entry. Return the match if it is successful and the length of the publicIdStartString is longer than the longest of any previous match.

Parameters
publicId:String

The publicId to be matched.

currentMatch:int

The length of publicIdStartString of previous match if any.

Returns:URI

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

Annotations
@Override
setPublicIdStartStringback to summary
public void setPublicIdStartString(String startString)

Set the publicIdStartString attribute.

Parameters
startString:String

The publicIdStartString attribute value.