Package cn.com.parese.exception

Examples of cn.com.parese.exception.PareseException


    Attribute attributeType = element.attribute(ATTRIBUTE_TYPE);
    Attribute attributeProxy = element.attribute(ATTRIBUTE_PROXY);
    Attribute attributeSingle = element.attribute(ATTRIBUTE_SINGLE);

    if (attributeId == null) {
      throw new PareseException("Not found necessary attribute." + attributeId);
    }

    if (attributeType == null) {
      throw new PareseException("Not found necessary attribute." + attributeType);
    }

    // 保存解析出的bean信息
    try {
      FactoryBuilder.getBeanFactory().addBean(attributeId.getStringValue(), attributeType.getStringValue(),
                          attributeSingle == null ? false : Boolean.parseBoolean(attributeSingle.getStringValue()),
                          attributeProxy == null ? false :
                          Boolean.parseBoolean(attributeProxy.getStringValue()));
    } catch (AppExceptin e) {
      throw new PareseException(e);
    }
  }
View Full Code Here


  public void doParese(Element element) throws PareseException {
    Attribute attributeProperty = element.attribute(ATTRIBUTE_PROPERTY);
    Attribute attributeItems = element.attribute(ATTRIBUTE_ITEMS);
    if (attributeProperty == null) {
      throw new PareseException("Not found necessary attribute." + attributeProperty);
    }
    if (attributeItems == null) {
      throw new PareseException("Not found necessary attribute." + attributeItems);
    }

    Attribute attributeStatus = element.attribute(ATTRIBUTE_STATUS);

    iteratorModule.setItemProperty(attributeItems.getStringValue());
View Full Code Here

  }

  public void doParese(Element element) throws PareseException {
    Attribute attr = element.attribute(ATTRIBUTE_TYPE);
    if (attr == null) {
      throw new PareseException("Not found necessary attribute."+ATTRIBUTE_TYPE);
    }

    FactoryBuilder.createAuthenticationFactory(attr.getStringValue());
  }
View Full Code Here

TOP

Related Classes of cn.com.parese.exception.PareseException

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.