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

pack-priv Class AltCatalog

extends BaseEntry
Class Inheritance
Known Direct Subclasses
javax.xml.catalog.DelegatePublic, javax.xml.catalog.DelegateSystem, javax.xml.catalog.DelegateUri, javax.xml.catalog.NextCatalog
Imports
java.net.URI, .URISyntaxException, .URL

Represents an alternative catalog entry.
Since
9

Field Summary

Modifier and TypeField and Description
pack-priv URI
Inherited from javax.xml.catalog.BaseEntry:
baseSpecifiedbaseURIidmatchIdSLASHtype

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String

Returns:

The value of the catalog attribute
getCatalogId
()

Returns the catalog attribute as a URI String.

pack-priv URI

Returns:

The value of the catalog attribute
getCatalogURI
()

Returns the catalog attribute as a URI.

public URI

Returns:

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

Matches the specified id with the entry.

pack-priv void
setCatalog(String
The catalog attribute value.
catalog
)

Set the catalog attribute.

Inherited from javax.xml.catalog.BaseEntry:
getBaseURIgetIdgetMatchIdgetTypematchmatchsetBaseURIsetIdsetMatchIdsetTypeverifyURI

Field Detail

catalogURIback to summary
pack-priv URI catalogURI

Constructor Detail

AltCatalogback to summary
pack-priv AltCatalog(BaseEntry.CatalogEntryType type, String base)

Method Detail

getCatalogIdback to summary
pack-priv String getCatalogId()

Returns the catalog attribute as a URI String.

Returns:String

The value of the catalog attribute

getCatalogURIback to summary
pack-priv URI getCatalogURI()

Returns the catalog attribute as a URI.

Returns:URI

The value of the catalog attribute

matchURIback to summary
public URI matchURI(String id, int currentMatch)

Matches the specified id with the entry. Returns the match if it is successful and the length of the start String is longer than the longest of any previous match.

Parameters
id:String

The id to be matched.

currentMatch:int

The length of start String of previous match if any.

Returns:URI

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

setCatalogback to summary
pack-priv void setCatalog(String catalog)

Set the catalog attribute. If the value of the catalog attribute is relative, it must be made absolute with respect to the base URI currently in effect.

Parameters
catalog:String

The catalog attribute value.

Exceptions
CatalogException:
if converting to catalog URI failed