JPackage getTargetPackage() { return bindInfo.getTargetPackage(); }
JPackage getTargetPackage() { return bindInfo.getTargetPackage(); }
JPackage getTargetPackage() { return bindInfo.getTargetPackage(); }
JPackage getTargetPackage() { return bindInfo.getTargetPackage(); }
JPackage getTargetPackage() { return bindInfo.getTargetPackage(); }
/** * Gets the type of this property, if any. * <p> * {@code <element-ref>} particle doesn't have the type. * * @return * null if none is specified. */ public final JClass getType() { try { String type = DOMUtil.getAttribute(element,"supertype"); if(type==null) return null; // TODO: does this attribute defaults to the current package? int idx = type.lastIndexOf('.'); if(idx<0) return parent.parent.codeModel.ref(type); else return parent.parent.getTargetPackage().ref(type); } catch( ClassNotFoundException e ) { // TODO: better error handling throw new NoClassDefFoundError(e.getMessage()); } }
/** * Gets the type of this property, if any. * <p> * <element-ref> particle doesn't have the type. * * @return * null if none is specified. */ public final JClass getType() { try { String type = DOMUtil.getAttribute(element,"supertype"); if(type==null) return null; // TODO: does this attribute defaults to the current package? int idx = type.lastIndexOf('.'); if(idx<0) return parent.parent.codeModel.ref(type); else return parent.parent.getTargetPackage().ref(type); } catch( ClassNotFoundException e ) { // TODO: better error handling throw new NoClassDefFoundError(e.getMessage()); } }
/** * Gets the type of this property, if any. * <p> * {@code <element-ref>} particle doesn't have the type. * * @return * null if none is specified. */ public final JClass getType() { try { String type = DOMUtil.getAttribute(element,"supertype"); if(type==null) return null; // TODO: does this attribute defaults to the current package? int idx = type.lastIndexOf('.'); if(idx<0) return parent.parent.codeModel.ref(type); else return parent.parent.getTargetPackage().ref(type); } catch( ClassNotFoundException e ) { // TODO: better error handling throw new NoClassDefFoundError(e.getMessage()); } }
/** * Gets the type of this property, if any. * <p> * <element-ref> particle doesn't have the type. * * @return * null if none is specified. */ public final JClass getType() { try { String type = DOMUtil.getAttribute(element,"supertype"); if(type==null) return null; // TODO: does this attribute defaults to the current package? int idx = type.lastIndexOf('.'); if(idx<0) return parent.parent.codeModel.ref(type); else return parent.parent.getTargetPackage().ref(type); } catch( ClassNotFoundException e ) { // TODO: better error handling throw new NoClassDefFoundError(e.getMessage()); } }
/** * Gets the type of this property, if any. * <p> * {@code <element-ref>} particle doesn't have the type. * * @return * null if none is specified. */ public final JClass getType() { try { String type = DOMUtil.getAttribute(element,"supertype"); if(type==null) return null; // TODO: does this attribute defaults to the current package? int idx = type.lastIndexOf('.'); if(idx<0) return parent.parent.codeModel.ref(type); else return parent.parent.getTargetPackage().ref(type); } catch( ClassNotFoundException e ) { // TODO: better error handling throw new NoClassDefFoundError(e.getMessage()); } }
bindInfo.getTargetPackage(), decl.name(), copyLocator() ); decls.put(decl,intf); fromName.put(decl.name(),new InterfaceAcceptor() {
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
} catch( IllegalArgumentException ex ) { type = owner.getTargetPackage().name()+'.'+type;
} catch( IllegalArgumentException e ) { type = owner.getTargetPackage().name()+'.'+type;
} catch( IllegalArgumentException e ) { type = owner.getTargetPackage().name()+'.'+type;
} catch( IllegalArgumentException ex ) { type = owner.getTargetPackage().name()+'.'+type;