/** * Used by {@link PropertyInfoImpl} to create new instances of {@link TypeRef} */ protected TypeRefImpl<TypeT,ClassDeclT> createTypeRef(QName name,TypeT type,boolean isNillable,String defaultValue) { return new TypeRefImpl<TypeT,ClassDeclT>(this,name,type,isNillable,defaultValue); }
public NonElement<TypeT,ClassDeclT> getTarget() { if(ref==null) calcRef(); return ref; }
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
protected void link() { super.link(); for (TypeRefImpl<TypeT, ClassDeclT> ref : getTypes() ) { ref.link(); } if(isValueList()) { // ugly test, because IDREF's are represented as text on the wire, // it's OK to be a value list in that case. if(id()!= ID.IDREF) { // check if all the item types are simple types // this can't be done when we compute types because // not all TypeInfos are available yet for (TypeRefImpl<TypeT,ClassDeclT> ref : types) { if(!ref.getTarget().isSimpleType()) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_NEEDS_SIMPLETYPE.format( nav().getTypeName(ref.getTarget().getType())), this )); break; } } } if(!isCollection()) parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } } }
protected void link() { super.link(); for (TypeRefImpl<TypeT, ClassDeclT> ref : getTypes() ) { ref.link(); } if(isValueList()) { // ugly test, because IDREF's are represented as text on the wire, // it's OK to be a value list in that case. if(id()!= ID.IDREF) { // check if all the item types are simple types // this can't be done when we compute types because // not all TypeInfos are available yet for (TypeRefImpl<TypeT,ClassDeclT> ref : types) { if(!ref.getTarget().isSimpleType()) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_NEEDS_SIMPLETYPE.format( nav().getTypeName(ref.getTarget().getType())), this )); break; } } } if(!isCollection()) parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } } }
protected void link() { super.link(); for (TypeRefImpl<TypeT, ClassDeclT> ref : getTypes() ) { ref.link(); } if(isValueList()) { // ugly test, because IDREF's are represented as text on the wire, // it's OK to be a value list in that case. if(id()!= ID.IDREF) { // check if all the item types are simple types // this can't be done when we compute types because // not all TypeInfos are available yet for (TypeRefImpl<TypeT,ClassDeclT> ref : types) { if(!ref.getTarget().isSimpleType()) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_NEEDS_SIMPLETYPE.format( nav().getTypeName(ref.getTarget().getType())), this )); break; } } } if(!isCollection()) parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } } }
protected void link() { // if we have'nt computed the ref yet, do so now. calcRef(); }
public TypeInfo<TypeT,ClassDeclT> get(int index) { return getTypes().get(index).getTarget(); }
/** * Used by {@link PropertyInfoImpl} to create new instances of {@link TypeRef} */ protected TypeRefImpl<TypeT,ClassDeclT> createTypeRef(QName name,TypeT type,boolean isNillable,String defaultValue) { return new TypeRefImpl<TypeT,ClassDeclT>(this,name,type,isNillable,defaultValue); }
protected void link() { super.link(); for (TypeRefImpl<TypeT, ClassDeclT> ref : getTypes() ) { ref.link(); } if(isValueList()) { // ugly test, because IDREF's are represented as text on the wire, // it's OK to be a value list in that case. if(id()!= ID.IDREF) { // check if all the item types are simple types // this can't be done when we compute types because // not all TypeInfos are available yet for (TypeRefImpl<TypeT,ClassDeclT> ref : types) { if(!ref.getTarget().isSimpleType()) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_NEEDS_SIMPLETYPE.format( nav().getTypeName(ref.getTarget().getType())), this )); break; } } } if(!isCollection()) parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } } }
public NonElement<TypeT,ClassDeclT> getTarget() { if(ref==null) calcRef(); return ref; }
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
/** * Used by {@link PropertyInfoImpl} to create new instances of {@link TypeRef} */ protected TypeRefImpl<TypeT,ClassDeclT> createTypeRef(QName name,TypeT type,boolean isNillable,String defaultValue) { return new TypeRefImpl<TypeT,ClassDeclT>(this,name,type,isNillable,defaultValue); }
protected void link() { // if we have'nt computed the ref yet, do so now. calcRef(); }
public TypeInfo<TypeT,ClassDeclT> get(int index) { return getTypes().get(index).getTarget(); }
/** * Used by {@link PropertyInfoImpl} to create new instances of {@link TypeRef} */ protected TypeRefImpl<TypeT,ClassDeclT> createTypeRef(QName name,TypeT type,boolean isNillable,String defaultValue) { return new TypeRefImpl<TypeT,ClassDeclT>(this,name,type,isNillable,defaultValue); }
public NonElement<TypeT,ClassDeclT> getTarget() { if(ref==null) calcRef(); return ref; }
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }
public NonElement<TypeT,ClassDeclT> getTarget() { if(ref==null) calcRef(); return ref; }
public RuntimeNonElement getTarget() { return (RuntimeNonElement)super.getTarget(); }