Package org.apache.ws.jaxme.generator.sg

Examples of org.apache.ws.jaxme.generator.sg.PropertySGChain


      if (pJs.isInterface()) {
        js.setType(JavaSource.INTERFACE);
      } else {
        js.addImplements(GroupUtil.getContentClass(pGroupSG, pParticle, ct.getClassContext().getXMLInterfaceName()));
      }
      PropertySGChain chain = ((PropertySGImpl) elementSG).getHeadOfChain();
      PropertySGChain head = new PropertySGChainImpl(chain){
        public String getXMLFieldName(PropertySG pController) throws SAXException {
          return "_value";
        }
        public String getPropertyName(PropertySG pController) throws SAXException {
          return "value";
View Full Code Here


        PropertySG pSG;
        DirectAccessible element;
        if (isMixed) {
          LocalJavaField f = pJm.newJavaField(GroupUtil.getContentClass(group, pParticle, ctSG.getClassContext().getXMLInterfaceName()));
          f.addLine("new ", GroupUtil.getContentClass(group, pParticle, ctSG.getClassContext().getXMLImplementationName()), "()");
          PropertySGChain chain = ((PropertySGImpl) pParticle.getPropertySG()).getHeadOfChain();
          PropertySGChain head = new PropertySGChainImpl(chain){
            public String getXMLFieldName(PropertySG pController) throws SAXException {
              return "_value";
            }
            public String getPropertyName(PropertySG pController) throws SAXException {
              return "value";
View Full Code Here

        if (pJs.isInterface()) {
          js.setType(JavaSource.INTERFACE);
        } else {
          js.addImplements(GroupUtil.getContentClass(pGroupSG, pParticle, ct.getClassContext().getXMLInterfaceName()));
        }
        PropertySGChain chain = ((PropertySGImpl) elementSG).getHeadOfChain();
        PropertySGChain head = new PropertySGChainImpl(chain){
          public String getXMLFieldName(PropertySG pController) throws SAXException {
            return "_value";
          }
          public String getPropertyName(PropertySG pController) throws SAXException {
            return "value";
View Full Code Here

      }
        locator = pParticle.getLocator();
    }

    public Object newPropertySGChain(ParticleSG pController) throws SAXException {
        PropertySGChain result;
        if (element != null) {
            result = new JAXBPropertySG(objectSG, element);
            element = null;
        } else if (wildcard != null) {
            result = new AnyElementPropertySG(objectSG, wildcard);
View Full Code Here

    public boolean isWildcard(ParticleSG pController) { return type.equals(XSParticle.WILDCARD); }

    public PropertySG getPropertySG(ParticleSG pController) throws SAXException {
        if (propertySG == null) {
      if (element != null  ||  wildcard != null) {
        PropertySGChain chain = (PropertySGChain) pController.newPropertySGChain();
        propertySG = new PropertySGImpl(chain);
        propertySG.init();
      } else {
        throw new IllegalStateException("This particle has no PropertySG.");
      }
View Full Code Here

      }
        locator = pParticle.getLocator();
    }

    public Object newPropertySGChain(ParticleSG pController) throws SAXException {
        PropertySGChain result;
        if (element != null) {
            result = new JAXBPropertySG(objectSG, element);
            element = null;
        } else if (wildcard != null) {
            result = new AnyElementPropertySG(objectSG, wildcard);
View Full Code Here

    public boolean isWildcard(ParticleSG pController) { return type.equals(XSParticle.WILDCARD); }

    public PropertySG getPropertySG(ParticleSG pController) throws SAXException {
        if (propertySG == null) {
          if (element != null  ||  wildcard != null) {
              PropertySGChain chain = (PropertySGChain) pController.newPropertySGChain();
              propertySG = new PropertySGImpl(chain);
              propertySG.init();
          } else {
        throw new IllegalStateException("This particle has no PropertySG.");
          }
View Full Code Here

    namespaceList = pWildcard.getNamespaceList();
    processContents = pWildcard.getProcessContents();
  }
 
  public Object newPropertySGChain(AttributeSG pController) {
    PropertySGChain result;
    if (xsWildcard != null) {
      result = new AnyAttributePropertySG(pController, xsWildcard);
      xsWildcard = null;
    } else if (xsAttribute != null) {
      result = new JAXBPropertySG(pController, xsAttribute);
View Full Code Here

    }
    return result;
  }
 
  public void init(AttributeSG pController) throws SAXException {
    PropertySGChain chain = (PropertySGChain) pController.newPropertySGChain();
    propertySG = new PropertySGImpl(chain);
    propertySG.init();
  }
View Full Code Here

  public Object newPropertySGChain(SimpleContentSG pController) throws SAXException {
    if (xsType == null) {
      throw new IllegalStateException("A new PropertySG has already been created.");
    }
    PropertySGChain result = new JAXBPropertySG(typeSG, xsType);
    xsType = null// Make this available to garbage collection.
    return result;
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.generator.sg.PropertySGChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.