public class XMLDocumentIdentifier extends Object implements Serializable, Cloneable, Comparable<XMLDocumentIdentifier>, Formattable
Utilities
there are further methods.Modifier and Type | Field and Description |
---|---|
static Function<XMLDocumentIdentifier,String> |
getPublicId
Deprecated.
use "XMLDocumentIdentifier::getPublicId" instead.
|
static Function<XMLDocumentIdentifier,String> |
getSystemId
Deprecated.
use "XMLDocumentIdentifier::getSystemId" instead.
|
static Set<Character> |
publicIdAlphabet
contains all characters allowed in public IDs
|
format
Constructor and Description |
---|
XMLDocumentIdentifier(String systemId)
create an instance with given systemId and a
publicId==null |
XMLDocumentIdentifier(@Opt String publicId,
String systemId)
create an instance with given systemId and publicId.
|
XMLDocumentIdentifier(@Opt String publicId,
URI systemId)
Currently for convenience only, executes "systemId.toString()".
|
XMLDocumentIdentifier(@Opt String publicId,
URL systemId)
Currently for convenience only, executes "systemId.toString()".
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(XMLDocumentIdentifier x)
First compare the publicIds and, if equal, then the systemIds.
|
boolean |
equals(Object o) |
protected boolean |
equals(XMLDocumentIdentifier x) |
Format |
format() |
String |
getPublicId() |
String |
getSystemId() |
int |
hashCode() |
static boolean |
isValidPublicId(String publicId)
check if string is a valid public id.
|
static boolean |
isValidSystemId(String systemId)
check if string is a valid system id.
|
String |
toString()
Create string representation needed for XML headers.
|
@Deprecated public static final Function<XMLDocumentIdentifier,String> getPublicId
@Deprecated public static final Function<XMLDocumentIdentifier,String> getSystemId
public XMLDocumentIdentifier(String systemId)
publicId==null
public XMLDocumentIdentifier(@Opt @Opt String publicId, String systemId)
IllegalArgumentException
- iff systemId is null.public XMLDocumentIdentifier(@Opt @Opt String publicId, URI systemId)
public final String getPublicId()
public final String getSystemId()
public boolean equals(Object o)
protected boolean equals(XMLDocumentIdentifier x)
public String toString()
SYSTEM <systemId>
"PUBLIC <publicId> <systemId>
"public Format format()
format
in interface Formattable
public int compareTo(XMLDocumentIdentifier x)
publicId==null
is smaller than
one with publicId!=null
.compareTo
in interface Comparable<XMLDocumentIdentifier>
public static boolean isValidSystemId(String systemId)
public static boolean isValidPublicId(String publicId)
see also the complete user documentation .