@Override public List<? extends RuntimePropertyInfo> getProperties() { return (List<? extends RuntimePropertyInfo>)super.getProperties(); }
public PropertyInfo<T,C> getProperty(String name) { for( PropertyInfo<T,C> p: getProperties() ) { if(p.getName().equals(name)) return p; } return null; }
public final boolean isSimpleType() { List<? extends PropertyInfo> props = getProperties(); if(props.size()!=1) return false; return props.get(0).kind()==PropertyKind.VALUE; }
public final boolean hasValueProperty() { ClassInfoImpl<T, C, F, M> bc = getBaseClass(); if(bc!=null && bc.hasValueProperty()) return true; for (PropertyInfo p : getProperties()) { if (p instanceof ValuePropertyInfo) return true; } return false; }
/** * A {@link ClassInfo} can be referenced by {@link XmlIDREF} if * it has an ID property. */ public boolean canBeReferencedByIDREF() { for (PropertyInfo<T,C> p : getProperties()) { if(p.id()== ID.ID) return true; } ClassInfoImpl<T,C,F,M> base = getBaseClass(); if(base!=null) return base.canBeReferencedByIDREF(); else return false; }
/** * Called after all the {@link com.sun.xml.bind.v2.model.core.TypeInfo}s are collected into the {@link #owner}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }
@Override public List<? extends RuntimePropertyInfo> getProperties() { return (List<? extends RuntimePropertyInfo>)super.getProperties(); }
public PropertyInfo<T,C> getProperty(String name) { for( PropertyInfo<T,C> p: getProperties() ) { if(p.getName().equals(name)) return p; } return null; }
for( PropertyInfo<T,C> p : ci.getProperties() ) { if(p.kind()== PropertyKind.REFERENCE) {
public final boolean isSimpleType() { List<? extends PropertyInfo> props = getProperties(); if(props.size()!=1) return false; return props.get(0).kind()==PropertyKind.VALUE; }
public final boolean hasValueProperty() { ClassInfoImpl<T, C, F, M> bc = getBaseClass(); if(bc!=null && bc.hasValueProperty()) return true; for (PropertyInfo p : getProperties()) { if (p instanceof ValuePropertyInfo) return true; } return false; }
/** * A {@link ClassInfo} can be referenced by {@link XmlIDREF} if * it has an ID property. */ public boolean canBeReferencedByIDREF() { for (PropertyInfo<T,C> p : getProperties()) { if(p.id()== ID.ID) return true; } ClassInfoImpl<T,C,F,M> base = getBaseClass(); if(base!=null) return base.canBeReferencedByIDREF(); else return false; }
/** * Called after all the {@link com.sun.xml.bind.v2.model.core.TypeInfo}s are collected into the {@link #owner}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }
public PropertyInfo<T,C> getProperty(String name) { for( PropertyInfo<T,C> p: getProperties() ) { if(p.getName().equals(name)) return p; } return null; }
public PropertyInfo<T,C> getProperty(String name) { for( PropertyInfo<T,C> p: getProperties() ) { if(p.getName().equals(name)) return p; } return null; }
public final boolean isSimpleType() { List<? extends PropertyInfo> props = getProperties(); if(props.size()!=1) return false; return props.get(0).kind()==PropertyKind.VALUE; }
public final boolean isSimpleType() { List<? extends PropertyInfo> props = getProperties(); if(props.size()!=1) return false; return props.get(0).kind()==PropertyKind.VALUE; }
for( PropertyInfo<T,C> p : ci.getProperties() ) { if(p.kind()== PropertyKind.REFERENCE) {
public final boolean hasValueProperty() { ClassInfoImpl<T, C, F, M> bc = getBaseClass(); if(bc!=null && bc.hasValueProperty()) return true; for (PropertyInfo p : getProperties()) { if (p instanceof ValuePropertyInfo) return true; } return false; }
public final boolean hasValueProperty() { ClassInfoImpl<T, C, F, M> bc = getBaseClass(); if(bc!=null && bc.hasValueProperty()) return true; for (PropertyInfo p : getProperties()) { if (p instanceof ValuePropertyInfo) return true; } return false; }