1 17 package org.apache.ws.jaxme.xs.xml; 18 19 20 43 public interface XsTWildcard extends XsTAnnotated { 44 public static class ProcessContents { 45 final private String value; 46 ProcessContents(String pValue) { 47 value = pValue; 48 } 49 public String toString() { return value; } 50 public String getValue() { return value; } 51 public static ProcessContents valueOf(String pValue) { 52 if ("skip".equals(pValue)) { 53 return SKIP; 54 } else if ("lax".equals(pValue)) { 55 return LAX; 56 } else if ("strict".equals(pValue)) { 57 return STRICT; 58 } else { 59 throw new IllegalArgumentException ("Invalid value for ProcessContents: " + pValue + "; expected either of 'skip', 'lax', or 'strict'"); 60 } 61 } 62 } 63 64 public static final ProcessContents SKIP = new ProcessContents("skip"); 65 public static final ProcessContents LAX = new ProcessContents("lax"); 66 public static final ProcessContents STRICT = new ProcessContents("strict"); 67 68 public void setNamespace(String pList); 69 public XsNamespaceList getNamespace(); 70 71 public void setProcessContents(ProcessContents pProcessContents); 72 public ProcessContents getProcessContents(); 73 } 74 | Popular Tags |