1 17 package org.apache.ws.jaxme.xs.jaxb; 18 19 import org.apache.ws.jaxme.xs.xml.XsQName; 20 21 22 27 public interface JAXBGlobalBindings { 28 30 public class UnderscoreBinding { 31 private final String name; 32 private UnderscoreBinding(String pName) { 33 name = pName; 34 } 35 public String toString() { return name; } 36 public String getName() { return name; } 37 public static final UnderscoreBinding AS_WORD_SEPARATOR = new UnderscoreBinding("asWordSeparator"); 38 public static final UnderscoreBinding AS_CHAR_IN_WORD = new UnderscoreBinding("asCharInWord"); 39 public static UnderscoreBinding valueOf(String pName) { 40 if (AS_WORD_SEPARATOR.name.equals(pName)) { 41 return AS_WORD_SEPARATOR; 42 } else if (AS_CHAR_IN_WORD.name.equals(pName)) { 43 return AS_CHAR_IN_WORD; 44 } else { 45 throw new IllegalArgumentException ("Invalid value for underscoreBinding: " + pName + 46 ", expected either of asWordSeparator|asCharInWord"); 47 } 48 } 49 } 50 51 54 public String getCollectionType(); 55 56 59 public boolean isFixedAttributeAsConstantProperty(); 60 61 64 public boolean isGenerateIsSetMethod(); 65 66 69 public boolean isEnableFailFastCheck(); 70 71 76 public boolean isChoiceContentProperty(); 77 78 81 public UnderscoreBinding getUnderscoreBinding(); 82 83 86 public boolean isEnableJavaNamingConventions(); 87 88 92 public XsQName[] getTypesafeEnumBase(); 93 94 97 public boolean isTypesafeEnumMemberName(); 98 99 102 public boolean isBindingStyleModelGroup(); 103 104 106 public JAXBJavaType.JAXBGlobalJavaType[] getJavaType(); 107 } 108 | Popular Tags |