org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/JsonSubtypeConditionBoolValue.java
changeset 2 e4420d2515f1
equal deleted inserted replaced
1:ef76fc2ac88c 2:e4420d2515f1
       
     1 // Copyright (c) 2009 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.
       
     4 
       
     5 package org.chromium.sdk.internal.protocolparser;
       
     6 
       
     7 import java.lang.annotation.ElementType;
       
     8 import java.lang.annotation.Retention;
       
     9 import java.lang.annotation.RetentionPolicy;
       
    10 import java.lang.annotation.Target;
       
    11 
       
    12 /**
       
    13  * Specifies a condition for a field-reading method. It is one from group of annotations that
       
    14  * mark key fields for choosing particular subtype. They set conditions on JSON fields in a subtype
       
    15  * interface that drive subtype auto-selection at parsing time.
       
    16  * <p>
       
    17  * Specifies condition on a boolean value (for boolean-valued fields).
       
    18  */
       
    19 @Target({ElementType.METHOD})
       
    20 @Retention(RetentionPolicy.RUNTIME)
       
    21 public @interface JsonSubtypeConditionBoolValue {
       
    22   /**
       
    23    * A value of boolean field that satisfies condition.
       
    24    */
       
    25   boolean value();
       
    26 }