XMLEntityDescriptionImplpublic class XMLEntityDescriptionImpl extends XMLResourceIdentifierImpl implements org.apache.xerces.impl.XMLEntityDescriptionThis class is an implementation of the XMLEntityDescription
interface which describes the properties of an entity. |
Fields Summary |
---|
protected String | fEntityNameThe name of the entity. |
Constructors Summary |
---|
public XMLEntityDescriptionImpl()Constructs an empty entity description.
| public XMLEntityDescriptionImpl(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)Constructs an entity description.
setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId);
| public XMLEntityDescriptionImpl(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)Constructs a resource identifier.
setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId, namespace);
|
Methods Summary |
---|
public void | clear()Clears the values.
super.clear();
fEntityName = null;
| public java.lang.String | getEntityName()Returns the name of the entity.
return fEntityName;
| public int | hashCode()Returns a hash code for this object.
int code = super.hashCode();
if (fEntityName != null) {
code += fEntityName.hashCode();
}
return code;
| public void | setDescription(java.lang.String entityName, java.lang.String publicId, java.lang.String literalSystemId, java.lang.String baseSystemId, java.lang.String expandedSystemId)Sets the values of this entity description.
setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId, null);
| public void | setDescription(java.lang.String entityName, java.lang.String publicId, java.lang.String literalSystemId, java.lang.String baseSystemId, java.lang.String expandedSystemId, java.lang.String namespace)Sets the values of this entity description.
fEntityName = entityName;
setValues(publicId, literalSystemId, baseSystemId, expandedSystemId, namespace);
| public void | setEntityName(java.lang.String name)Sets the name of the entity.
fEntityName = name;
| public java.lang.String | toString()Returns a string representation of this object.
StringBuffer str = new StringBuffer();
if (fEntityName != null) {
str.append(fEntityName);
}
str.append(':");
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();
|
|