01: package org.compass.core.xml.javax;
02:
03: import org.compass.core.xml.AliasedXmlObject;
04: import org.w3c.dom.Node;
05:
06: /**
07: * A java 5 implementation of {@link AliasedXmlObject} wrapping a {@link Node}.
08: *
09: * @author kimchy
10: */
11: public class NodeAliasedXmlObject extends NodeXmlObject implements
12: AliasedXmlObject {
13:
14: private String alias;
15:
16: public NodeAliasedXmlObject(String alias, Node node) {
17: super (node);
18: this .alias = alias;
19: }
20:
21: public String getAlias() {
22: return this.alias;
23: }
24: }
|