Package com.agilejava.maven.docbkx.spec

Examples of com.agilejava.maven.docbkx.spec.Parameter


   * @return The Parameter object holding the metadata.
   */
  private Parameter extractParameter(String name)
      throws MojoExecutionException {
    String url = createURL("params/" + name + ".xml");
    Parameter parameter = new Parameter();
    parameter.setName(name);
    try {
      DocumentBuilder builder = createDocumentBuilder();
      Document document = builder.parse(url);
      Node node = (Node) selectDescription.selectSingleNode(document);
      if (node == null) {
          getLog().warn("Failed to parse description for " + name);
          return parameter;
      }
            String result = node.getNodeValue();
      result = result.substring(0, result.indexOf('.') + 1);
      result = result.trim();
      result = result.replace('\n', ' ');
      parameter.setDescription(result);
    } catch (FileNotFoundException fnfe) {
      logMissingDescription(name, fnfe);
    } catch (IOException ioe) {
      logMissingDescription(name, ioe);
    } catch (ParserConfigurationException pce) {
View Full Code Here


   *            The name of the (XSLT) parameter.
   * @return The Parameter object holding the metadata.
   */
  private Parameter extractParameter(String name) throws MojoExecutionException {
    String url = createURL("params/" + name + ".xml");
    Parameter parameter = new Parameter();
    parameter.setName(name);

    try {
      DocumentBuilder builder = createDocumentBuilder();
      Document document = builder.parse(url);
      Node node = (Node) selectDescription.selectSingleNode(document);

      if (node == null) {
        getLog().warn("Failed to parse description for " + name);

        return parameter;
      }

      String result = node.getNodeValue();
      result = result.substring(0, result.indexOf('.') + 1);
      result = result.trim();
      result = result.replace('\n', ' ');
      parameter.setDescription(result);
      node = (Node) selectType.selectSingleNode(document);

      if (node != null) {
        parameter.setTypeFromRefType(node.getNodeValue());
      } else {
        getLog().warn("Missing type info for " + name);
      }
    } catch (FileNotFoundException fnfe) {
      logMissingDescription(name, fnfe);
View Full Code Here

     */
    private Parameter extractParameter( String name )
                                throws MojoExecutionException
    {
        String url = createURL( "params/" + name + ".xml" );
        Parameter parameter = new Parameter(  );
        parameter.setName( name );

        try
        {
            DocumentBuilder builder = createDocumentBuilder(  );
            Document document = builder.parse( url );
            Node node = (Node) selectDescription.selectSingleNode( document );

            if ( node == null )
            {
                getLog(  ).warn( "Failed to parse description for " + name );

                return parameter;
            }

            String result = node.getNodeValue(  );
            result = result.substring( 0, result.indexOf( '.' ) + 1 );
            result = result.trim(  );
            result = result.replace( '\n', ' ' );
            parameter.setDescription( result );
            node = (Node) selectType.selectSingleNode( document );

            if ( node != null )
            {
                parameter.setTypeFromRefType( node.getNodeValue(  ) );
            } else
            {
                getLog(  ).warn( "Missing type info for " + name );
            }
        } catch ( FileNotFoundException fnfe )
View Full Code Here

     * @return The Parameter object holding the metadata.
     */
    private Parameter extractParameter(String name)
            throws MojoExecutionException {
        String url = createURL("params/" + name + ".xml");
        Parameter parameter = new Parameter();
        parameter.setName(name);
        try {
            DocumentBuilder builder = createDocumentBuilder();
            Document document = builder.parse(url);
            Node node = (Node) selectDescription.selectSingleNode(document);
            if (node == null) {
                getLog().warn("Failed to parse description for " + name);
                return parameter;
            }
            String result = node.getNodeValue();
            result = result.substring(0, result.indexOf('.') + 1);
            result = result.trim();
            result = result.replace('\n', ' ');
            parameter.setDescription(result);
            node = (Node) selectType.selectSingleNode(document);
            if (node != null) {
                parameter.setTypeFromRefType(node.getNodeValue());
            } else {
                getLog().warn("Missing type info for " + name);
            }
        } catch (FileNotFoundException fnfe) {
            logMissingDescription(name, fnfe);
View Full Code Here

   * @return The Parameter object holding the metadata.
   */
  private Parameter extractParameter(String name)
      throws MojoExecutionException {
    String url = createURL("params/" + name + ".xml");
    Parameter parameter = new Parameter();
    parameter.setName(name);
    try {
      DocumentBuilder builder = createDocumentBuilder();
      Document document = builder.parse(url);
      Node node = (Node) selectDescription.selectSingleNode(document);
      String result = node.getNodeValue();
      result = result.substring(0, result.indexOf('.') + 1);
      result = result.trim();
      result = result.replace('\n', ' ');
      parameter.setDescription(result);
    } catch (FileNotFoundException fnfe) {
      logMissingDescription(name, fnfe);
    } catch (IOException ioe) {
      logMissingDescription(name, ioe);
    } catch (ParserConfigurationException pce) {
View Full Code Here

     * @return The Parameter object holding the metadata.
     */
    private Parameter extractParameter(String name)
            throws MojoExecutionException {
        String url = createURL("params/" + name + ".xml");
        Parameter parameter = new Parameter();
        parameter.setName(name);
        try {
            DocumentBuilder builder = createDocumentBuilder();
            Document document = builder.parse(url);
            Node node = (Node) selectDescription.selectSingleNode(document);
            if (node == null) {
                getLog().warn("Failed to parse description for " + name);
                return parameter;
            }
            String result = node.getNodeValue();
            result = result.substring(0, result.indexOf('.') + 1);
            result = result.trim();
            result = result.replace('\n', ' ');
            parameter.setDescription(result);
            node = (Node) selectType.selectSingleNode(document);
            if (node != null) {
                parameter.setTypeFromRefType(node.getNodeValue());
            } else {
                getLog().warn("Missing type info for " + name);
            }
        } catch (FileNotFoundException fnfe) {
            logMissingDescription(name, fnfe);
View Full Code Here

   *            The name of the (XSLT) parameter.
   * @return The Parameter object holding the metadata.
   */
  private Parameter extractParameter(String name) throws MojoExecutionException {
    String url = createURL("params/" + name + ".xml");
    Parameter parameter = new Parameter();
    parameter.setName(name);

    try {
      DocumentBuilder builder = createDocumentBuilder();
      Document document = builder.parse(url);
      Node node = (Node) selectDescription.selectSingleNode(document);

      if (node == null) {
        getLog().warn("Failed to parse description for " + name);

        return parameter;
      }

      String result = node.getNodeValue();
      result = result.substring(0, result.indexOf('.') + 1);
      result = result.trim();
      result = result.replace('\n', ' ');
      parameter.setDescription(result);
      node = (Node) selectType.selectSingleNode(document);

      if (node != null) {
        parameter.setTypeFromRefType(node.getNodeValue());
      } else {
        getLog().warn("Missing type info for " + name);
      }
    } catch (FileNotFoundException fnfe) {
      logMissingDescription(name, fnfe);
View Full Code Here

TOP

Related Classes of com.agilejava.maven.docbkx.spec.Parameter

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.