FileDocCategorySizeDatePackage
XMLEntityDescriptionImpl.javaAPI DocJava SE 5 API6006Fri Aug 26 14:55:56 BST 2005com.sun.org.apache.xerces.internal.util

XMLEntityDescriptionImpl

public class XMLEntityDescriptionImpl extends XMLResourceIdentifierImpl implements 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,v 1.1.1.1 2004/05/04 10:22:35 vk112360 Exp $

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();