|
XML for Java Compatibility API 2.0.11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.ExternalID
The ExternalID class provides support for external XML entities. External IDs are used, for example, by DOM TXNotation Nodes. External IDs always contain a system ID which is a URI. However, external IDs may also include a public ID which may be used to try to generate an alternative URI. This can be very useful when a particular entity is already widely available, and the XML processor is can use the public ID to index into a local catalog of resources to retrieve the entity value. If valid, public IDs are used in preference to system IDs.
TXNotation
, Serialized FormConstructor Summary | |
ExternalID(java.lang.String systemID)
Constructor for system IDs. |
|
ExternalID(java.lang.String publicID,
java.lang.String systemID)
Constructor for public and system IDs. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getPubidLiteral()
Returns the public identifier of this external ID. |
java.lang.String |
getSystemLiteral()
Returns the system identifier of this external ID. |
int |
hashCode()
|
boolean |
isPublic()
Returns if this external ID is a public ID (or system ID). |
boolean |
isSystem()
Returns if this external ID is a system ID (or public ID). |
java.lang.String |
toString()
Returns this external ID in the format it was declared: SYSTEM "systemID" or
PUBLIC "publicID" "systemID" . |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ExternalID(java.lang.String systemID)
systemID
- URI, which may be used to retrieve an external entity's content.public ExternalID(java.lang.String publicID, java.lang.String systemID)
publicID
- Identifier to be used to try to generate an alternative URI in order to
retrieve the external entity's content, or null if
a system identitier is to be constructed.systemID
- URI, which may be used to retrieve an external entity's content.Method Detail |
public boolean isSystem()
isPublic()
public boolean isPublic()
isSystem()
public java.lang.String getSystemLiteral()
getPubidLiteral()
public java.lang.String getPubidLiteral()
getSystemLiteral()
public java.lang.String toString()
SYSTEM "systemID"
or
PUBLIC "publicID" "systemID"
.public boolean equals(java.lang.Object obj)
public int hashCode()
|
XML for Java Compatibility API 2.0.11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |