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

pack-priv final Class RewriteSystem

extends BaseEntry
Class Inheritance
Imports
java.net.URL

Represents a rewriteSystem 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
RewriteSystem(String base, String
The systemIdStartString attribute.
systemIdStartString
,
String
The rewritePrefix attribute.
rewritePrefix
)

Construct a rewriteSystem entry.

Method Summary

Modifier and TypeMethod and Description
public URL

Returns:

The rewritePrefix attribute value.
getRewritePrefix
()

Get the rewritePrefix attribute.

public String

Returns:

The systemIdStartString
getSystemIdStartString
()

Get the systemIdStartString 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 systemIdStartString of previous match if any.
currentMatch
)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

public String

Returns:

The replacement URI if the match is successful, null if not.
match
(String
The systemId to be matched.
systemId
)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

public void
setRewritePrefix(String
The rewritePrefix attribute value.
rewritePrefix
)

Set the rewritePrefix attribute.

public void
setSystemIdStartString(String
The systemIdStartString attribute value.
systemIdStartString
)

Set the systemIdStartString attribute.

Inherited from javax.xml.catalog.BaseEntry:
getBaseURIgetIdgetMatchIdgetTypesetBaseURIsetIdsetMatchIdsetTypeverifyURI

Field Detail

rewritePrefixback to summary
pack-priv URL rewritePrefix
systemIdStartStringback to summary
pack-priv String systemIdStartString

Constructor Detail

RewriteSystemback to summary
public RewriteSystem(String base, String systemIdStartString, String rewritePrefix)

Construct a rewriteSystem entry.

Parameters
systemIdStartString:String

The systemIdStartString attribute.

rewritePrefix:String

The rewritePrefix attribute.

Method Detail

getRewritePrefixback to summary
public URL getRewritePrefix()

Get the rewritePrefix attribute.

Returns:URL

The rewritePrefix attribute value.

getSystemIdStartStringback to summary
public String getSystemIdStartString()

Get the systemIdStartString attribute.

Returns:String

The systemIdStartString

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 systemIdStartString is longer than the longest of any previous match.

Parameters
systemId:String

The systemId to be matched.

currentMatch:int

The length of systemIdStartString of previous match if any.

Returns:String

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

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 replacement URI if the match is successful, null if not.

Annotations
@Override
setRewritePrefixback to summary
public void setRewritePrefix(String rewritePrefix)

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

Parameters
rewritePrefix:String

The rewritePrefix attribute value.

setSystemIdStartStringback to summary
public void setSystemIdStartString(String systemIdStartString)

Set the systemIdStartString attribute.

Parameters
systemIdStartString:String

The systemIdStartString attribute value.