Examples of path()


Examples of org.beangle.struts2.convention.route.Action.path()

    } else if (Constants.SEO_URI.equals(profile.getUriPathStyle())) {
      sb.append(StrUtils.unCamel(profile.getInfix(className)));
    } else {
      throw new RuntimeException("unsupported uri style " + profile.getUriPathStyle());
    }
    action.path(sb.toString()).method(profile.getDefaultMethod()).extention(profile.getUriExtension());
    return action;
  }

  @Inject
  public void setProfileService(ProfileService profileService) {
View Full Code Here

Examples of org.codehaus.jackson.JsonNode.path()

          String arrayOperators = currentToken.substring(indexOfLeftSquareBracket);
          StringTokenizer arrayOpsTokenizer = new StringTokenizer(arrayOperators,ARRAY_RIGHT);
          while(arrayOpsTokenizer.hasMoreTokens()) {
            if (!tempNode.isMissingNode() && tempNode.isArray()) {
              String currentArrayOperator = arrayOpsTokenizer.nextToken();
              tempNode = tempNode.path(Integer.parseInt(currentArrayOperator.substring(1)));
            }
          }
        } else { // LSB first character
          String arrayOperators = currentToken.substring(indexOfLeftSquareBracket);
          StringTokenizer arrayOpsTokenizer = new StringTokenizer(arrayOperators,ARRAY_RIGHT);
View Full Code Here

Examples of org.cruxframework.crux.core.server.rest.core.UriBuilder.path()

      boolean pathPresent = path != null;
      boolean restAnnotationPresent = pathPresent || (httpMethod != null);
     
      UriBuilder builder = new UriBuilder();
      if (base != null)
        builder.path(base);
      if (clazz.isAnnotationPresent(Path.class))
      {
        builder.path(clazz);
      }
      if (path != null)
View Full Code Here

Examples of org.dbwiki.data.schema.SchemaNode.path()

        if (schemaNode.isAttribute()) {
          if (count > 0) {
            printer.addBR();
          }
          if (schemaNode.id() == currentDisplaySchemaNodeID) {
            printer.addRADIOBUTTON(schemaNode.path(), DatabaseLayouter.PropertyDisplaySchema, Integer.toString(schemaNode.id()), true);
          } else {
            printer.addRADIOBUTTON(schemaNode.path(), DatabaseLayouter.PropertyDisplaySchema, Integer.toString(schemaNode.id()), false);
          }
          count++;
        }
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.path()

  // message Person {}
  @Test public void should_find_resource_if_URIs_are_exact_match() {
    XtextResource resource = xtext.resource();
    addToXtextIndex(resource);
    URI resourceUri = resource.getURI();
    IPath path = Path.fromOSString(resourceUri.path());
    IResourceDescription description = lookup.resourceIn(path);
    assertThat(description.getURI(), equalTo(resourceUri));
  }

  // syntax = "proto2";
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.Image.path()

           
            if( imageAnnotation != null )
            {
                try
                {
                    this.image = ImageData.readFromClassLoader( findAnnotationHostClass( imageAnnotation ), imageAnnotation.path() ).optional();
                }
                catch( Exception e )
                {
                    Sapphire.service( LoggingService.class ).log( e );
                }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlBinding.path()

            {
                final XmlBinding xmlBindingAnnotation = property.getAnnotation( XmlBinding.class );
               
                if( xmlBindingAnnotation != null && possible.size() == 1 )
                {
                    final String path = xmlBindingAnnotation.path();
                    final int slashIndex = path.lastIndexOf( '/' );
                   
                    if( slashIndex == -1 )
                    {
                        this.xmlElementNames = new QName[] { createQualifiedName( path, xmlNamespaceResolver ) };
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlElementBinding.path()

                    }
                }
            }
            else
            {
                if( xmlElementBindingAnnotation.path().length() > 0 )
                {
                    this.path = new XmlPath( xmlElementBindingAnnotation.path(), xmlNamespaceResolver );
                }
               
                final XmlElementBinding.Mapping[] mappings = xmlElementBindingAnnotation.mappings();
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding.path()

                {
                    if( xmlListBindingAnnotation.mappings().length == 1 )
                    {
                        xmlPath = xmlListBindingAnnotation.mappings()[ 0 ].element();
                       
                        if( xmlListBindingAnnotation.path().length() > 0 )
                        {
                            xmlPath = xmlListBindingAnnotation.path() + "/" + xmlPath;
                        }
                    }
                    else
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlValueBinding.path()

            {
                final XmlValueBinding xmlValueBindingAnnotation = property.getAnnotation( XmlValueBinding.class );
               
                if( xmlValueBindingAnnotation != null )
                {
                    xmlPath = xmlValueBindingAnnotation.path();
                }
            }
           
            if( xmlPath == null )
            {
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.