summaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java')
-rw-r--r--libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java46
1 files changed, 8 insertions, 38 deletions
diff --git a/libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java b/libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java
index 4b40bfa526a..38e1f00b1af 100644
--- a/libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java
+++ b/libjava/classpath/gnu/xml/stream/EntityReferenceImpl.java
@@ -1,5 +1,5 @@
/* EntityReferenceImpl.java --
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005,2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -41,7 +41,7 @@ import java.io.IOException;
import java.io.Writer;
import javax.xml.stream.Location;
import javax.xml.stream.XMLStreamException;
-//import javax.xml.stream.events.EntityDeclaration;
+import javax.xml.stream.events.EntityDeclaration;
import javax.xml.stream.events.EntityReference;
/**
@@ -54,26 +54,16 @@ public class EntityReferenceImpl
implements EntityReference
{
- //protected final EntityDeclaration decl;
+ protected final EntityDeclaration decl;
protected final String name;
- protected final String baseUri;
- protected final String publicId;
- protected final String systemId;
- protected final String replacementText;
protected EntityReferenceImpl(Location location,
- //EntityDeclaration decl,
- String name,
- String baseUri, String publicId,
- String systemId, String replacementText)
+ EntityDeclaration decl,
+ String name)
{
super(location);
- //this.decl = decl;
+ this.decl = decl;
this.name = name;
- this.baseUri = baseUri;
- this.publicId = publicId;
- this.systemId = systemId;
- this.replacementText = replacementText;
}
public int getEventType()
@@ -81,36 +71,16 @@ public class EntityReferenceImpl
return ENTITY_REFERENCE;
}
- /*public EntityDeclaration getDeclaration()
+ public EntityDeclaration getDeclaration()
{
return decl;
- }*/
+ }
public String getName()
{
return name;
}
- public String getBaseUri()
- {
- return baseUri;
- }
-
- public String getPublicId()
- {
- return publicId;
- }
-
- public String getSystemId()
- {
- return systemId;
- }
-
- public String getReplacementText()
- {
- return replacementText;
- }
-
public void writeAsEncodedUnicode(Writer writer)
throws XMLStreamException
{