1 9 10 package org.netbeans.modules.xml.retriever.catalog.model.impl; 11 12 import java.net.URI ; 13 import org.netbeans.modules.xml.retriever.catalog.model.CatalogAttributes; 14 import org.netbeans.modules.xml.retriever.catalog.model.CatalogQNames; 15 import org.netbeans.modules.xml.retriever.catalog.model.CatalogVisitor; 16 import org.w3c.dom.Element ; 17 18 22 public class NextCatalogImpl extends CatalogComponentImpl implements 23 org.netbeans.modules.xml.retriever.catalog.model.NextCatalog{ 24 25 public NextCatalogImpl(CatalogModelImpl model, Element e) { 26 super(model, e); 27 } 28 29 public NextCatalogImpl(CatalogModelImpl model) { 30 this(model, createElementNS(model, CatalogQNames.NEXTCATALOG)); 31 } 32 33 public void accept(CatalogVisitor visitor) { 34 visitor.visit(this); 35 } 36 37 public String getCatalogAttr() { 38 return getAttribute(CatalogAttributes.catalog); 39 } 40 41 public void setCatalogAttr(URI uri) { 42 super.setAttribute(CATALOG_ATTR_PROP, CatalogAttributes.catalog, uri.toString()); 43 } 44 45 } 46 | Popular Tags |