1 22 23 package org.xquark.extractor.metadata; 24 25 import org.xquark.extractor.runtime.Selection; 26 27 public class Schema extends NamedNode { 28 29 private static final String RCSRevision = "$Revision: 1.4 $"; 30 private static final String RCSName = "$Name: $"; 31 32 33 String targetNamespace = null; 34 int elementFormDefault = Selection.UNQUALIFIED; 35 36 40 public Schema(String name) { super(name); } 41 42 45 public Schema() { } 46 47 public String getTargetNamespace() { return targetNamespace; } 48 49 public void setTargetNamespace(String targetNamespace) { 50 this.targetNamespace = targetNamespace; 51 } 52 53 public int getElementFormDefault() { return elementFormDefault; } 54 55 public void setElementFormDefault(int elementFormDefault) { 56 this.elementFormDefault = elementFormDefault; 57 } 58 59 public String pprint() { 60 StringBuffer retVal = new StringBuffer (); 61 String newLine = System.getProperty("line.separator"); 62 retVal.append("========== Schema : "); 63 retVal.append(_name); 64 retVal.append(" ===================="); 65 retVal.append(newLine); 66 for (int i = 0; i < _children.size(); i++) { 67 retVal.append(((NamedNode)_children.get(i)).pprint()); 68 retVal.append(newLine); 69 } 70 return retVal.toString(); 71 } 72 } 73 74 | Popular Tags |