public CNonElement getContentType() { return getProperty().ref().get(0); }
public CNonElement getContentType() { return getProperty().ref().get(0); }
public CNonElement getContentType() { return getProperty().ref().get(0); }
public CNonElement getContentType() { return getProperty().ref().get(0); }
public CNonElement getContentType() { return getProperty().ref().get(0); }
protected CNonElement getType() { final CElementPropertyInfo property = getElementInfo().getProperty(); final CNonElement type = property.ref().iterator().next(); return type; }
protected CNonElement getType() { final CElementPropertyInfo property = getElementInfo().getProperty(); final CNonElement type = property.ref().iterator().next(); return type; }
protected JClass getDeclaredType() { final CElementPropertyInfo property = getElementInfo().getProperty(); if (property.getAdapter() == null) { @SuppressWarnings("unused") final CNonElement type = property.ref().iterator().next(); final JClass declaredType = (JClass) getType().toType( outline.parent(), Aspect.EXPOSED); return declaredType; } else { return (JClass) property.getAdapter().customType.toType(outline.parent(), Aspect.EXPOSED); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
protected JClass getDeclaredType() { final CElementPropertyInfo property = getElementInfo().getProperty(); if (property.getAdapter() == null) { @SuppressWarnings("unused") final CNonElement type = property.ref().iterator().next(); final JClass declaredType = (JClass) getType().toType( outline.parent(), Aspect.EXPOSED); return declaredType; } else { return (JClass) property.getAdapter().customType.toType(outline.parent(), Aspect.EXPOSED); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }