Skip to content

Commit 852554e

Browse files
committed
Improved attListDecl handling
1 parent faac2ee commit 852554e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/com/maxprograms/xml/Document.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public class Document implements XMLNode {
3232
private String internalSubset;
3333
private Charset encoding;
3434
private Map<String, String> entities;
35-
private List<AttributeDecl> attributeDeclarations;
35+
private List<AttlistDecl> attlistDeclarations;
36+
3637

3738
private static Logger logger = System.getLogger(Document.class.getName());
3839

@@ -284,14 +285,6 @@ public void writeBytes(OutputStream output, Charset charset) throws IOException
284285
outputter.output(this, output);
285286
}
286287

287-
public void setAttributes(List<AttributeDecl> attributes) {
288-
this.attributeDeclarations = attributes;
289-
}
290-
291-
public List<AttributeDecl> getAttributes() {
292-
return attributeDeclarations;
293-
}
294-
295288
public void setInternalSubset(String value) {
296289
internalSubset = value;
297290
}
@@ -301,4 +294,11 @@ public int hashCode() {
301294
return toString().hashCode();
302295
}
303296

297+
public void setAttlistDeclarations(List<AttlistDecl> attlistDeclarations) {
298+
this.attlistDeclarations = attlistDeclarations;
299+
}
300+
301+
public List<AttlistDecl> getAttlistDeclarations() {
302+
return attlistDeclarations;
303+
}
304304
}

0 commit comments

Comments
 (0)