Examples of ExtendedBinding


Examples of org.exolab.castor.builder.binding.ExtendedBinding

                    && !_globalElements.contains("/" + localXPath)) {
                xPath += "/#choice";
            }
        }
       
        ExtendedBinding binding = component.getBinding();
        if (binding != null) {
            // deal with explicit exclusions
            if (binding.existsExclusion(typedLocalName)) {
                Exclude exclusion = binding.getExclusion(typedLocalName);
                if (exclusion.getClassName() != null) {
                    LOG.info("Dealing with exclusion for local element " + xPath
                            + " as per binding file.");
                    jClass.changeLocalName(exclusion.getClassName());
                }
                return;
            }

            // deal with explicit forces
            if (binding.existsForce(localName)) {

                List<String> localNamesList = _localNames.get(localName);
                memorizeCollision(xPath, localName, localNamesList);

                LOG.info("Changing class name for local element " + xPath
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     *
     * @param fileName the file that represents a Binding
     */
    public final void setBinding(final String fileName) {
        try {
            ExtendedBinding binding = BindingLoader.createBinding(fileName);
            setBinding(binding);
        } catch (BindingException e) {
            String err = "Unable to load a binding file due to the following:\n"
                    + e.getMessage()
                    + "\nThe Source Generator will continue with no binding file.";
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     *
     * @param source an InputSource identifying a Castor Binding File.
     */
    public final void setBinding(final InputSource source) {
        try {
            ExtendedBinding binding = BindingLoader.createBinding(source);
            setBinding(binding);
        } catch (BindingException e) {
            String err = "unable to load a binding file due to the following:\n"
                    + e.getMessage()
                    + "\nThe Source Generator will continue with no binding file.";
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     * @return True if the Source Generator is mapping schema elements to Java
     *         classes.
     */
    public final boolean mappingSchemaElement2Java() {
        if (_bindingComponent != null) {
            ExtendedBinding binding = _bindingComponent.getBinding();
            if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null) {
                    return (type == BindingType.ELEMENT);
                }
            }
        }
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     * @return True if the Source Generator is mapping schema types to Java
     *         classes.
     */
    public final boolean mappingSchemaType2Java() {
        if (_bindingComponent != null) {
            ExtendedBinding binding = _bindingComponent.getBinding();
            if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null) {
                    return (type == BindingType.TYPE);
                }
            }
        }
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

    *
    * @param fileName the file that represents a Binding
    */
    public void setBinding(String fileName) {
        try {
            ExtendedBinding binding = BindingLoader.createBinding(fileName);
            setBinding(binding);
        } catch (BindingException e) {
           //log these messages
            String err= "unable to load a binding file due to the following:\n";
            err +=e.getMessage();
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

    *
    * @param source an InputSource identifying a Castor Binding File.
    */
    public void setBinding(InputSource source) {
        try {
            ExtendedBinding binding = BindingLoader.createBinding(source);
            setBinding(binding);
        } catch (BindingException e) {
           //log these messages
            String err= "unable to load a binding file due to the following:\n";
            err +=e.getMessage();
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

            System.out.print("-- ");
            System.out.println(SAX1_MSG);
        }

        if (options.getProperty("binding-file") != null) {
            ExtendedBinding binding = null;
            try {
               binding =  BindingLoader.createBinding(options.getProperty("binding-file"));
            } catch (BindingException e) {
                 System.out.print("--");
                 System.out.println("Unable to load a binding file due to the following Exception:");
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     *
   * @return True if the Source Generator is mapping schema elements to Java classes.
   */
  public boolean mappingSchemaElement2Java() {
      if (_bindingComponent != null) {
          ExtendedBinding binding = _bindingComponent.getBinding();
          if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null ) {
                    return (type.getType() == BindingType.ELEMENT_TYPE);
                }
            }
      }
View Full Code Here

Examples of org.exolab.castor.builder.binding.ExtendedBinding

     *
   * @return True if the Source Generator is mapping schema types to Java classes.
   */
  public boolean mappingSchemaType2Java() {
      if (_bindingComponent != null) {
          ExtendedBinding binding = _bindingComponent.getBinding();
          if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null ) {
                    return (type.getType() == BindingType.TYPE_TYPE);
                }
            }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.