org.apache.xerces.util

Class XMLEntityDescriptionImpl

Implemented Interfaces:
XMLEntityDescription, org.apache.xerces.xni.XMLResourceIdentifier

public class XMLEntityDescriptionImpl
extends XMLResourceIdentifierImpl
implements XMLEntityDescription

This class is an implementation of the XMLEntityDescription interface which describes the properties of an entity.
Version:
$Id: XMLEntityDescriptionImpl.java,v 1.1 2004/03/16 22:03:22 mrglavas Exp $
Author:
Michael Glavassevich, IBM

Field Summary

protected String
fEntityName
The name of the entity.

Fields inherited from class org.apache.xerces.util.XMLResourceIdentifierImpl

fBaseSystemId, fExpandedSystemId, fLiteralSystemId, fNamespace, fPublicId

Constructor Summary

XMLEntityDescriptionImpl()
Constructs an empty entity description.
XMLEntityDescriptionImpl(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)
Constructs an entity description.
XMLEntityDescriptionImpl(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)
Constructs a resource identifier.

Method Summary

void
clear()
Clears the values.
String
getEntityName()
Returns the name of the entity.
int
hashCode()
Returns a hash code for this object.
void
setDescription(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)
Sets the values of this entity description.
void
setDescription(String entityName, String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)
Sets the values of this entity description.
void
setEntityName(String name)
Sets the name of the entity.
String
toString()
Returns a string representation of this object.

Methods inherited from class org.apache.xerces.util.XMLResourceIdentifierImpl

clear, getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getNamespace, getPublicId, hashCode, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setNamespace, setPublicId, setValues, setValues, toString

Field Details

fEntityName

protected String fEntityName
The name of the entity.

Constructor Details

XMLEntityDescriptionImpl

public XMLEntityDescriptionImpl()
Constructs an empty entity description.

XMLEntityDescriptionImpl

public XMLEntityDescriptionImpl(String entityName,
                                String publicId,
                                String literalSystemId,
                                String baseSystemId,
                                String expandedSystemId)
Constructs an entity description.
Parameters:
entityName - The name of the entity.
publicId - The public identifier.
literalSystemId - The literal system identifier.
baseSystemId - The base system identifier.
expandedSystemId - The expanded system identifier.

XMLEntityDescriptionImpl

public XMLEntityDescriptionImpl(String entityName,
                                String publicId,
                                String literalSystemId,
                                String baseSystemId,
                                String expandedSystemId,
                                String namespace)
Constructs a resource identifier.
Parameters:
entityName - The name of the entity.
publicId - The public identifier.
literalSystemId - The literal system identifier.
baseSystemId - The base system identifier.
expandedSystemId - The expanded system identifier.
namespace - The namespace.

Method Details

clear

public void clear()
Clears the values.
Overrides:
clear in interface XMLResourceIdentifierImpl

getEntityName

public String getEntityName()
Returns the name of the entity.
Specified by:
getEntityName in interface XMLEntityDescription
Returns:
the name of the entity

hashCode

public int hashCode()
Returns a hash code for this object.
Overrides:
hashCode in interface XMLResourceIdentifierImpl

setDescription

public void setDescription(String entityName,
                           String publicId,
                           String literalSystemId,
                           String baseSystemId,
                           String expandedSystemId)
Sets the values of this entity description.
Parameters:
entityName - The name of the entity.
publicId - The public identifier.
literalSystemId - The literal system identifier.
baseSystemId - The base system identifier.
expandedSystemId - The expanded system identifier.

setDescription

public void setDescription(String entityName,
                           String publicId,
                           String literalSystemId,
                           String baseSystemId,
                           String expandedSystemId,
                           String namespace)
Sets the values of this entity description.
Parameters:
entityName - The name of the entity.
publicId - The public identifier.
literalSystemId - The literal system identifier.
baseSystemId - The base system identifier.
expandedSystemId - The expanded system identifier.
namespace - The namespace.

setEntityName

public void setEntityName(String name)
Sets the name of the entity.
Specified by:
setEntityName in interface XMLEntityDescription
Parameters:
name - the name of the entity

toString

public String toString()
Returns a string representation of this object.
Overrides:
toString in interface XMLResourceIdentifierImpl

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.