home *** CD-ROM | disk | FTP | other *** search
- package com.kav.xsl;
-
- public class AttributeSet extends XSLObject {
- public AttributeSet(XSLStylesheet var1, String var2) {
- super(var1, (short)3);
-
- try {
- ((XSLObject)this).setAttribute("name", var2);
- } catch (XSLException var3) {
- }
-
- ((XSLObject)this).makeAttrReadOnly("name");
- }
-
- public XSLObject copy() {
- AttributeSet var1 = new AttributeSet(((XSLObject)this).getParentStylesheet(), this.getName());
- ((XSLObject)var1).copyActions(this);
- return var1;
- }
-
- public String getName() {
- return ((XSLObject)this).getAttribute("name");
- }
-
- public boolean appendAction(XSLObject var1) {
- return this.isValidChild(var1) ? super.appendAction(var1) : false;
- }
-
- protected boolean isValidChild(XSLObject var1) {
- switch (var1.getType()) {
- case 2:
- case 33:
- return true;
- default:
- return false;
- }
- }
- }
-