1 package org.sapia.soto.util; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 7 19 public class Namespace { 20 private String _prefix; 21 private CompositeObjectFactoryEx _fac; 22 private List _defs = new ArrayList (10); 23 24 27 public Namespace(CompositeObjectFactoryEx fac) { 28 _fac = fac; 29 } 30 31 36 public void setPrefix(String prefix) { 37 _prefix = prefix; 38 } 39 40 public String getPrefix() { 41 return _prefix; 42 } 43 44 public Def addDef() { 45 Def def = new Def(); 46 47 _defs.add(def); 48 49 return def; 50 } 51 52 public List getDefs() { 53 return _defs; 54 } 55 } 56 | Popular Tags |