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

pack-priv final Class UriSuffix

extends BaseEntry
Class Inheritance
Imports
java.net.URL

Represents a uriSuffix entry.
Since
9

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
UriSuffix(String base, String
The uriSuffix attribute.
uriSuffix
,
String
The uri attribute.
uri
)

Construct a group entry.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The uri attribute value.
getURI
()

Get the uri attribute.

public String

Returns:

The uriSuffix
getURISuffix
()

Get the uriSuffix attribute.

public String

Returns:

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

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

public String
match(String systemId)

Overrides javax.xml.catalog.BaseEntry.match.

Matches the specified string with the identifier attribute of the entry.

public void
setURI(String
The uri attribute value.
uri
)

Set the uri attribute.

public void
setURISuffix(String
The uriSuffix attribute value.
uriSuffix
)

Set the uriSuffix attribute.

Inherited from javax.xml.catalog.BaseEntry:
getBaseURIgetIdgetMatchIdgetTypesetBaseURIsetIdsetMatchIdsetTypeverifyURI

Field Detail

uriback to summary
pack-priv URL uri
uriSuffixback to summary
pack-priv String uriSuffix

Constructor Detail

UriSuffixback to summary
public UriSuffix(String base, String uriSuffix, String uri)

Construct a group entry.

Parameters
uriSuffix:String

The uriSuffix attribute.

uri:String

The uri attribute.

Method Detail

getURIback to summary
public String getURI()

Get the uri attribute.

Returns:String

The uri attribute value.

getURISuffixback to summary
public String getURISuffix()

Get the uriSuffix attribute.

Returns:String

The uriSuffix

matchback to summary
public String match(String systemId, int currentMatch)

Overrides javax.xml.catalog.BaseEntry.match.

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

Parameters
systemId:String

The systemId to be matched.

currentMatch:int

The length of uriSuffix of previous match if any.

Returns:String

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

Annotations
@Override
matchback to summary
public String match(String systemId)

Overrides javax.xml.catalog.BaseEntry.match.

Doc from javax.xml.catalog.BaseEntry.match.

Matches the specified string with the identifier attribute of the entry.

Annotations
@Override
setURIback to summary
public void setURI(String uri)

Set the uri attribute. If the value of the uri attribute is relative, it must be made absolute with respect to the base URI currently in effect. The URI reference should not include a fragment identifier.

Parameters
uri:String

The uri attribute value.

setURISuffixback to summary
public void setURISuffix(String uriSuffix)

Set the uriSuffix attribute.

Parameters
uriSuffix:String

The uriSuffix attribute value.