public static Element getElement(Element e, String localName) { return getElement(e,"",localName); }
public static Element getElement(Element e, String localName) { return getElement(e,"",localName); }
public static Element getElement(Element e, String localName) { return getElement(e,"",localName); }
public static Element getElement(Element e, String localName) { return getElement(e,"",localName); }
public static Element getElement(Element e, String localName) { return getElement(e,"",localName); }
/** Gets the serialVersionUID if it's turned on. */ public Long getSerialVersionUID() { Element serial = DOMUtil.getElement(dom,XJC_NS,"serializable"); if(serial==null) return null; String v = DOMUtil.getAttribute(serial,"uid"); if(v==null) v="1"; return new Long(v); }
/** Gets the serialVersionUID if it's turned on. */ public Long getSerialVersionUID() { Element serial = DOMUtil.getElement(dom,XJC_NS,"serializable"); if(serial==null) return null; String v = DOMUtil.getAttribute(serial,"uid"); if(v==null) v="1"; return new Long(v); }
/** Gets the serialVersionUID if it's turned on. */ public Long getSerialVersionUID() { Element serial = DOMUtil.getElement(dom,XJC_NS,"serializable"); if(serial==null) return null; String v = DOMUtil.getAttribute(serial,"uid"); if(v==null) v="1"; return new Long(v); }
/** Gets the serialVersionUID if it's turned on. */ public Long getSerialVersionUID() { Element serial = DOMUtil.getElement(dom,XJC_NS,"serializable"); if(serial==null) return null; String v = DOMUtil.getAttribute(serial,"uid"); if(v==null) v="1"; return new Long(v); }
/** Gets the value from the option element. */ private String getOption(String attName, String defaultValue) { Element opt = DOMUtil.getElement(dom,"options"); if (opt != null) { String s = DOMUtil.getAttribute(opt,attName); if (s != null) return s; } return defaultValue; }
/** Gets the value from the option element. */ private String getOption(String attName, String defaultValue) { Element opt = DOMUtil.getElement(dom,"options"); if (opt != null) { String s = DOMUtil.getAttribute(opt,attName); if (s != null) return s; } return defaultValue; }
/** Gets the value from the option element. */ private String getOption(String attName, String defaultValue) { Element opt = DOMUtil.getElement(dom,"options"); if (opt != null) { String s = DOMUtil.getAttribute(opt,attName); if (s != null) return s; } return defaultValue; }
/** Gets the value from the option element. */ private String getOption(String attName, String defaultValue) { Element opt = DOMUtil.getElement(dom,"options"); if (opt != null) { String s = DOMUtil.getAttribute(opt,attName); if (s != null) return s; } return defaultValue; }
/** Gets the serialVersionUID if it's turned on. */ public Long getSerialVersionUID() { Element serial = DOMUtil.getElement(dom,XJC_NS,"serializable"); if(serial==null) return null; String v = DOMUtil.getAttribute(serial,"uid"); if(v==null) v="1"; return new Long(v); }
/** Gets the value from the option element. */ private String getOption(String attName, String defaultValue) { Element opt = DOMUtil.getElement(dom,"options"); if (opt != null) { String s = DOMUtil.getAttribute(opt,attName); if (s != null) return s; } return defaultValue; }
/** Gets the xjc:superInterface customization if it's turned on. */ public JClass getSuperInterface() { Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface"); if (sc == null) return null; String name = DOMUtil.getAttribute(sc,"name"); if (name == null) return null; JDefinedClass c; try { c = codeModel._class(name, ClassType.INTERFACE); c.hide(); } catch (JClassAlreadyExistsException e) { c = e.getExistingClass(); } return c; }
/** Gets the xjc:superClass customization if it's turned on. */ public JClass getSuperClass() { Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass"); if (sc == null) return null; JDefinedClass c; try { String v = DOMUtil.getAttribute(sc,"name"); if(v==null) return null; c = codeModel._class(v); c.hide(); } catch (JClassAlreadyExistsException e) { c = e.getExistingClass(); } return c; }
/** Gets the xjc:superClass customization if it's turned on. */ public JClass getSuperClass() { Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass"); if (sc == null) return null; JDefinedClass c; try { String v = DOMUtil.getAttribute(sc,"name"); if(v==null) return null; c = codeModel._class(v); c.hide(); } catch (JClassAlreadyExistsException e) { c = e.getExistingClass(); } return c; }
/** Gets the xjc:superInterface customization if it's turned on. */ public JClass getSuperInterface() { Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface"); if (sc == null) return null; String name = DOMUtil.getAttribute(sc,"name"); if (name == null) return null; JDefinedClass c; try { c = codeModel._class(name, ClassType.INTERFACE); c.hide(); } catch (JClassAlreadyExistsException e) { c = e.getExistingClass(); } return c; }
/** Gets the xjc:superInterface customization if it's turned on. */ public JClass getSuperInterface() { Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface"); if (sc == null) return null; String name = DOMUtil.getAttribute(sc,"name"); if (name == null) return null; JDefinedClass c; try { c = codeModel._class(name, ClassType.INTERFACE); c.hide(); } catch (JClassAlreadyExistsException e) { c = e.getExistingClass(); } return c; }