JBoss Common Classes 2.2.17.GA

org.jboss.util.xml.catalog.helpers
Class PublicId

java.lang.Object
  extended by org.jboss.util.xml.catalog.helpers.PublicId

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
Author:
Norman Walsh Norman.Walsh@Sun.COM

Constructor Summary
protected PublicId()
           
 
Method Summary
static String decodeURN(String urn)
          Decode a "publicid" URN into a public identifier.
static String encodeURN(String publicId)
          Encode a public identifier as a "publicid" URN.
static String normalize(String publicId)
          Normalize a public identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicId

protected PublicId()
Method Detail

normalize

public 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.

Parameters:
publicId - The unnormalized public identifier.
Returns:
The normalized identifier.

encodeURN

public 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.

Parameters:
publicId - The unnormalized public identifier.
Returns:
The normalized identifier.

decodeURN

public 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.

Parameters:
urn - The unnormalized public identifier.
Returns:
The normalized identifier.

JBoss Common Classes 2.2.17.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.