Constructors Summary |
---|
public XMLResourceIdentifierImpl()Constructs an empty resource identifier.
|
public XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)Constructs a resource identifier.
setValues(publicId, literalSystemId, baseSystemId,
expandedSystemId, null);
|
public XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)Constructs a resource identifier.
setValues(publicId, literalSystemId, baseSystemId,
expandedSystemId, namespace);
|
Methods Summary |
---|
public void | clear()Clears the values.
fPublicId = null;
fLiteralSystemId = null;
fBaseSystemId = null;
fExpandedSystemId = null;
fNamespace = null;
|
public java.lang.String | getBaseSystemId()Returns the base URI against which the literal SystemId is to be resolved.
return fBaseSystemId;
|
public java.lang.String | getExpandedSystemId()Returns the expanded system identifier.
return fExpandedSystemId;
|
public java.lang.String | getLiteralSystemId()Returns the literal system identifier.
return fLiteralSystemId;
|
public java.lang.String | getNamespace()Returns the namespace of the resource.
return fNamespace;
|
public java.lang.String | getPublicId()Returns the public identifier.
return fPublicId;
|
public int | hashCode()Returns a hash code for this object.
int code = 0;
if (fPublicId != null) {
code += fPublicId.hashCode();
}
if (fLiteralSystemId != null) {
code += fLiteralSystemId.hashCode();
}
if (fBaseSystemId != null) {
code += fBaseSystemId.hashCode();
}
if (fExpandedSystemId != null) {
code += fExpandedSystemId.hashCode();
}
if (fNamespace != null) {
code += fNamespace.hashCode();
}
return code;
|
public void | setBaseSystemId(java.lang.String baseSystemId)Sets the base system identifier.
fBaseSystemId = baseSystemId;
|
public void | setExpandedSystemId(java.lang.String expandedSystemId)Sets the expanded system identifier.
fExpandedSystemId = expandedSystemId;
|
public void | setLiteralSystemId(java.lang.String literalSystemId)Sets the literal system identifier.
fLiteralSystemId = literalSystemId;
|
public void | setNamespace(java.lang.String namespace)Sets the namespace of the resource.
fNamespace = namespace;
|
public void | setPublicId(java.lang.String publicId)Sets the public identifier.
fPublicId = publicId;
|
public void | setValues(java.lang.String publicId, java.lang.String literalSystemId, java.lang.String baseSystemId, java.lang.String expandedSystemId)Sets the values of the resource identifier.
setValues(publicId, literalSystemId, baseSystemId,
expandedSystemId, null);
|
public void | setValues(java.lang.String publicId, java.lang.String literalSystemId, java.lang.String baseSystemId, java.lang.String expandedSystemId, java.lang.String namespace)Sets the values of the resource identifier.
fPublicId = publicId;
fLiteralSystemId = literalSystemId;
fBaseSystemId = baseSystemId;
fExpandedSystemId = expandedSystemId;
fNamespace = namespace;
|
public java.lang.String | toString()Returns a string representation of this object.
StringBuffer str = new StringBuffer();
if (fPublicId != null) {
str.append(fPublicId);
}
str.append(':");
if (fLiteralSystemId != null) {
str.append(fLiteralSystemId);
}
str.append(':");
if (fBaseSystemId != null) {
str.append(fBaseSystemId);
}
str.append(':");
if (fExpandedSystemId != null) {
str.append(fExpandedSystemId);
}
str.append(':");
if (fNamespace != null) {
str.append(fNamespace);
}
return str.toString();
|