Package io.inversion

Class Op

java.lang.Object
io.inversion.Op
All Implemented Interfaces:
Comparable<Op>

public final class Op extends Object implements Comparable<Op>
  • Constructor Details

    • Op

      public Op()
  • Method Details

    • matches

      public boolean matches(Request req, io.inversion.utils.Path path)
    • getOperationPath

      public String getOperationPath()
    • isInternal

      public boolean isInternal()
      Indicates this operation should not be called from clients directly but may be used for internal calls.
      Returns:
      true if internal is true or either endpoint.isInternal() or collection.isInternal() are true
    • withInternal

      public Op withInternal(boolean internal)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getActionPathMatch

      public io.inversion.utils.Path getActionPathMatch()
    • withActionPathMatch

      public Op withActionPathMatch(io.inversion.utils.Path actionPathMatch)
    • withActionMatch

      public Op withActionMatch(Action action, io.inversion.utils.Path actionMatchPath, Boolean isEpAction)
    • getActions

      public List<Action> getActions()
    • hasParams

      public boolean hasParams(Param.In in, String... keys)
    • getPathParamValue

      public String getPathParamValue(String key)
    • withParam

      public Op withParam(Param param)
    • getParams

      public List<Param> getParams()
    • removeParam

      public void removeParam(Param param)
    • getPathParams

      public List<Param> getPathParams(int pathIndex)
    • getParam

      public Param getParam(Param.In in, String key)
    • getPathParamCount

      public int getPathParamCount()
    • compareTo

      public int compareTo(Op o)
      Specified by:
      compareTo in interface Comparable<Op>
    • functionAsInt

      public static int functionAsInt(Op.OpFunction func)
    • getName

      public String getName()
    • withName

      public Op withName(String name)
    • getMethod

      public String getMethod()
    • withMethod

      public Op withMethod(String method)
    • getFunction

      public Op.OpFunction getFunction()
    • withFunction

      public Op withFunction(Op.OpFunction function)
    • getPath

      public io.inversion.utils.Path getPath()
    • withPath

      public Op withPath(io.inversion.utils.Path path)
    • getEndpointPathMatch

      public io.inversion.utils.Path getEndpointPathMatch()
    • withEndpointPathMatch

      public Op withEndpointPathMatch(io.inversion.utils.Path endpointPathMatch)
    • getEndpoint

      public Endpoint getEndpoint()
    • withEndpoint

      public Op withEndpoint(Endpoint endpoint)
    • getCollection

      public Collection getCollection()
    • withCollection

      public Op withCollection(Collection collection)
    • getRelationship

      public Relationship getRelationship()
    • withRelationship

      public Op withRelationship(Relationship relationship)
    • getApi

      public Api getApi()
    • withApi

      public Op withApi(Api api)
    • getDbPathMatch

      public io.inversion.utils.Path getDbPathMatch()
    • withDbMatchPath

      public Op withDbMatchPath(io.inversion.utils.Path dbMatchPath)
    • getDb

      public Db getDb()
    • withDb

      public Op withDb(Db db)
    • getEngine

      public Engine getEngine()
    • withEngine

      public Op withEngine(Engine engine)
    • withDbPathMatch

      public Op withDbPathMatch(io.inversion.utils.Path dbPathMatch)
    • getCollectionPathMatch

      public io.inversion.utils.Path getCollectionPathMatch()
    • withCollectionPathMatch

      public Op withCollectionPathMatch(io.inversion.utils.Path collectionPathMatch)
    • getDescription

      public String getDescription()
    • withDescription

      public Op withDescription(String description)
    • getActionPathMatches

      public List<org.apache.commons.lang3.tuple.Triple<Action,io.inversion.utils.Path,Boolean>> getActionPathMatches()
    • isEpAction

      public boolean isEpAction(Action action)