private List<XSElementDeclaration> getPropertyDecls( XSComplexTypeDecl type ) { List<XSElementDeclaration> propDecls = new ArrayList<XSElementDeclaration>(); getPropertyDecls( type.getParticle(), propDecls ); return propDecls; }
/** * Get content model for a given type * * @param typeDecl get content model for which complex type * @return a content model validator */ public XSCMValidator getContentModel(XSComplexTypeDecl typeDecl, boolean forUPA) { // for complex type with empty or simple content, // there is no content model validator short contentType = typeDecl.getContentType(); if (contentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE || contentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) { return null; } return getContentModel((XSParticleDecl)typeDecl.getParticle(), (XSOpenContentDecl)typeDecl.getOpenContent(), forUPA); }
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Hashtable dependencies) { addRelatedType(type.getBaseType(), componentList, namespace, dependencies); expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies); final XSParticle particle = type.getParticle(); if (particle != null) { expandRelatedParticleComponents(particle, componentList, namespace, dependencies); } }
if ( ( (XSComplexTypeDecl) this.element.getTypeDefinition( ) ).getParticle( ) != null ) group = (XSModelGroupImpl) ( (XSComplexTypeDecl) this.element.getTypeDefinition( ) ).getParticle( ) .getTerm( );
XSModelGroupImpl group = null; if (fParent[i] instanceof XSComplexTypeDecl) { XSParticle p = ((XSComplexTypeDecl)fParent[i]).getParticle(); if (p != null) group = (XSModelGroupImpl)p.getTerm();
if (!((XSParticleDecl)ctype.getParticle()).emptiable()) return null;
XSParticle particle = newComplexTypeElem.getParticle();
ctd1.getFinal(), ctd1.getProhibitedSubstitutions(), ctd1.getContentType(), ctd1.getAbstract(), ctd1.getAttrGrp(), (XSSimpleType) ctd1.getSimpleType(), (XSParticleDecl) ctd1.getParticle(), annotations ); ctd.setName(o.getName() + Util.ANONYMOUS_ELEM_TYPE_SUFFIX);
XSParticleDecl baseContent = (XSParticleDecl)baseType.getParticle(); boolean baseIsAll = (((XSParticleDecl)baseType.getParticle()).fType == XSParticleDecl.PARTICLE_MODELGROUP && ((XSModelGroupImpl)(((XSParticleDecl)baseType.getParticle())).fValue).fCompositor == XSModelGroupImpl.MODELGROUP_ALL); boolean derivedIsAll = (fParticle.fType == XSParticleDecl.PARTICLE_MODELGROUP && ((XSModelGroupImpl)fParticle.fValue).fCompositor == XSModelGroupImpl.MODELGROUP_ALL); group.fParticleCount = 2; group.fParticles = new XSParticleDecl[2]; group.fParticles[0] = (XSParticleDecl)baseType.getParticle(); group.fParticles[1] = fParticle; group.fAnnotations = XSObjectListImpl.EMPTY_LIST;
((XSParticleDecl)baseComplexType.getParticle()).emptiable()) {