Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
     Copyright (c) 2012 LinkedIn Corp.
  
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 */
 
 package com.linkedin.restli.docgen;
 
 

Author(s):
dellamag
 
 {
   @Override
   public void visitAction(VisitContext visitContext,
                           RecordTemplate parentResource,
                           ResourceLevel resourceLevel,
                           ActionSchema actionSchema)
   {
     .info("Visiting action: "actionSchema.getName());
     .info("resource schema: " + visitContext.getResourcePath());
     .info("resource level: " + resourceLevel);
   }
 
   @Override
   public void visitFinder(VisitContext visitContext,
                           RecordTemplate parentResource,
                           FinderSchema finderSchema)
   {
     .info("Visiting finder: " + finderSchema.getName());
     .info("resourcePath: " + visitContext.getResourcePath());
   }
 
   @Override
   public void visitParameter(VisitContext visitContext,
                              RecordTemplate parentResource,
                              Object parentMethodSchema,
                              ParameterSchema parameterSchema)
   {
     .info("Visiting parameter: " + parameterSchema.getName());
     .info("resourcePath: " + visitContext.getResourcePath());
   }
 
   @Override
   public void visitRestMethod(VisitContext visitContext,
                               RecordTemplate parentResource,
                               RestMethodSchema restMethodSchema)
   {
     .info("Visiting restMethod: " + restMethodSchema.getMethod());
     .info("resourcePath: " + visitContext.getResourcePath());
   }
 
   @Override
   public void visitActionSetResource(VisitContext visitContext,
                                      ActionsSetSchema actionSet)
   {
     .info("Visiting actionSet for resource: " + visitContext.getResourcePath());
   }
 
   @Override
   public void visitAssociationResource(VisitContext visitContext,
                                        AssociationSchema associationSchema)
   {
     .info("Visiting association for resource: " + visitContext.getResourcePath());
   }
 
   @Override
   public void visitCollectionResource(VisitContext visitContext,
                                       CollectionSchema collectionSchema)
   {
     .info("Visiting collection for resource: " + visitContext.getResourcePath());
   }
 
  public void visitSimpleResource(VisitContext visitContext,
                                      SimpleSchema collectionSchema)
  {
    .info("Visiting simple for resource: " + visitContext.getResourcePath());
  }
  public void visitEntityResource(VisitContext visitContext,
                                  EntitySchema entitySchema)
  {
    .info("Visiting entity for resource: " + visitContext.getResourcePath());
  }
  public void visitResourceSchema(VisitContext visitContextResourceSchema resourceSchema)
  {
    .info("Visiting resource: " + visitContext.getResourcePath());
  }
  private final Logger _logger = LoggerFactory.getLogger(getClass());
New to GrepCode? Check out our FAQ X