1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.components.devtools_bridge.commands;
11 * Definition for a Command and a command factory. Definition needed when
12 * registering in GCD. GCD only interested in in-parameters so to CommandDefinition.
14 public abstract class CommandDefinition {
15 private final String mName;
16 private final List<ParamDefinition<?>> mInParams;
18 public CommandDefinition(String name, List<ParamDefinition<?>> inParams) {
23 public Iterable<ParamDefinition<?>> inParams() {
27 public String shortName() {
31 public String fullName() {
32 return "base._" + mName;
36 * Factory method for creaiting a command from serialized state.
38 public abstract Command newCommand(String id, Map<String, String> actualParameters)
39 throws CommandFormatException;