org.apache.xml.resolver.helpers
public abstract class PublicId extends Object
Static methods for dealing with public identifiers.
This class defines a set of static methods that can be called to handle public identifiers.
Version: 1.0
Constructor Summary | |
---|---|
protected | PublicId() |
Method Summary | |
---|---|
static String | decodeURN(String urn) Decode a "publicid" URN into a public identifier. This method is declared static so that other classes can use it directly. |
static String | encodeURN(String publicId) Encode a public identifier as a "publicid" URN. This method is declared static so that other classes can use it directly. |
static String | normalize(String publicId) Normalize a public identifier. Public identifiers must be normalized according to the following rules before comparisons between them can be made:
This method is declared static so that other classes can use it directly. |
Decode a "publicid" URN into a public identifier.
This method is declared static so that other classes can use it directly.
Parameters: publicId The unnormalized public identifier.
Returns: The normalized identifier.
Encode a public identifier as a "publicid" URN.
This method is declared static so that other classes can use it directly.
Parameters: publicId The unnormalized public identifier.
Returns: The normalized identifier.
Normalize a public identifier.
Public identifiers must be normalized according to the following rules before comparisons between them can be made:
This method is declared static so that other classes can use it directly.
Parameters: publicId The unnormalized public identifier.
Returns: The normalized identifier.