Ejemplo n.º 1
0
  private CCustomizations getCustomizations(XSParticle src) {
    // customizations for a particle  should include those defined in the term unless it's global
    // this is so that the schema like:
    //
    // <xs:sequence>
    //   <xs:element name="foo" type="xs:int">
    //     <xs:annotation><xs:appinfo>
    //       <hyperjaxb:... />
    //
    // would be picked up
    if (src.getTerm().isElementDecl()) {
      XSElementDecl xed = src.getTerm().asElementDecl();
      if (xed.isGlobal()) return getCustomizations((XSComponent) src);
    }

    return getCustomizations(src, src.getTerm());
  }
Ejemplo n.º 2
0
 public XSComponent elementDecl(XSElementDecl decl) {
   return decl.getOwnerSchema();
 }