Package javax.xml.bind

Examples of javax.xml.bind.PropertyException


    else if ("jaxb.fragment".equals(name)) {
      // XXX
      return null;
    }
    else
      throw new PropertyException(name);
  }
View Full Code Here


    else if ("jaxb.formatted.output".equals(name)) { /* XXX */ }
    else if ("jaxb.schemaLocation".equals(name)) { /* XXX */ }
    else if ("jaxb.noNamespaceSchemaLocation".equals(name)) { /* XXX */ }
    else if ("jaxb.fragment".equals(name)) { /* XXX */ }
    else
      throw new PropertyException(name);
  }
View Full Code Here

  public void setProperties(Properties p) {
    String dialect = ""; // 数据库方言
    dialect = p.getProperty("dialect");
    if (Common.isEmpty(dialect)) {
      try {
        throw new PropertyException("dialect property is not found!");
      } catch (PropertyException e) {
        e.printStackTrace();
      }
    } else {
      try {
        dialectObject = (Dialect) Class.forName(dialect)
            .getDeclaredConstructor().newInstance();
      } catch (Exception e) {
        throw new RuntimeException(dialect + ", init fail!\n" + e);
      }
    }
    pageSqlId = p.getProperty("pageSqlId");//根据id来区分是否需要分页
    if (Common.isEmpty(pageSqlId)) {
      try {
        throw new PropertyException("pageSqlId property is not found!");
      } catch (PropertyException e) {
        e.printStackTrace();
      }
    }
  }
View Full Code Here

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name, value);
    }
View Full Code Here

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name);
    }
View Full Code Here

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public void setProperty( String name, Object value )
        throws PropertyException {
       
        throw new PropertyException(name, value);
    }
View Full Code Here

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public Object getProperty( String name )
        throws PropertyException {
           
        throw new PropertyException(name);
    }
View Full Code Here

    } else if (JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(key)) {
      return xmlMarshaller.getNoNamespaceSchemaLocation();
    } else if (XMLConstants.JAXB_FRAGMENT.equals(key)) {
      return new Boolean(xmlMarshaller.isFragment());
    }
    throw new PropertyException("Unsupported Property");
  }
View Full Code Here

        xmlMarshaller.setNoNamespaceSchemaLocation((String) value);
      } else if (XMLConstants.JAXB_FRAGMENT.equals(key)) {
        Boolean fragment = (Boolean) value;
        xmlMarshaller.setFragment(fragment.booleanValue());
      } else {
        throw new PropertyException(key, value);
      }
    } catch (ClassCastException exception) {
      throw new PropertyException(key, exception);
    }
  }
View Full Code Here

    public void setProperty(String key, Object value) throws PropertyException {
        if (key == null) {
            throw new IllegalArgumentException();
        }
        throw new PropertyException(key, value);
    }
View Full Code Here

TOP

Related Classes of javax.xml.bind.PropertyException

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.