FileDocCategorySizeDatePackage
XMLEntityDescriptionImpl.javaAPI DocApache Xerces 3.0.16331Fri Sep 14 20:33:54 BST 2007org.apache.xerces.util

XMLEntityDescriptionImpl

public class XMLEntityDescriptionImpl extends XMLResourceIdentifierImpl implements org.apache.xerces.impl.XMLEntityDescription

This class is an implementation of the XMLEntityDescription interface which describes the properties of an entity.

author
Michael Glavassevich, IBM
version
$Id: XMLEntityDescriptionImpl.java 447241 2006-09-18 05:12:57Z mrglavas $

Fields Summary
protected String
fEntityName
The 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.

param
entityName The name of the entity.
param
publicId The public identifier.
param
literalSystemId The literal system identifier.
param
baseSystemId The base system identifier.
param
expandedSystemId The expanded system identifier.

        setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId);
    
public XMLEntityDescriptionImpl(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)
Constructs a resource identifier.

param
entityName The name of the entity.
param
publicId The public identifier.
param
literalSystemId The literal system identifier.
param
baseSystemId The base system identifier.
param
expandedSystemId The expanded system identifier.
param
namespace The namespace.

        setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId, namespace);
    
Methods Summary
public voidclear()

Clears the values.

        super.clear();
        fEntityName = null;
    
public java.lang.StringgetEntityName()
Returns the name of the entity.

return
the name of the entity

        return fEntityName;
    
public inthashCode()
Returns a hash code for this object.

        int code = super.hashCode();
        if (fEntityName != null) {
            code += fEntityName.hashCode();
        }
        return code;
    
public voidsetDescription(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.

param
entityName The name of the entity.
param
publicId The public identifier.
param
literalSystemId The literal system identifier.
param
baseSystemId The base system identifier.
param
expandedSystemId The expanded system identifier.

        setDescription(entityName, publicId, literalSystemId, baseSystemId, expandedSystemId, null);
    
public voidsetDescription(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.

param
entityName The name of the entity.
param
publicId The public identifier.
param
literalSystemId The literal system identifier.
param
baseSystemId The base system identifier.
param
expandedSystemId The expanded system identifier.
param
namespace The namespace.

        fEntityName = entityName;
        setValues(publicId, literalSystemId, baseSystemId, expandedSystemId, namespace);
    
public voidsetEntityName(java.lang.String name)
Sets the name of the entity.

param
name the name of the entity

        fEntityName = name;
    
public java.lang.StringtoString()
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();