JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.validation

Interface Path.Node

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      <T extends Path.Node>
      T
      as (Class<T> nodeType)
      Narrows the type of this node down to the given type.
      Integer getIndex ()
      Object getKey ()
      ElementKind getKind ()
      The kind of element represented by the node.
      String getName ()
      Returns the name of the element which the node represents: null if it is a leaf node which represents an entity / bean.
      boolean isInIterable ()
    • Method Detail

      • getName

        String getName()
        Returns the name of the element which the node represents:
        • null if it is a leaf node which represents an entity / bean. In particular, the node representing the root object.
        • The property name for a property.
        • The method name for a method.
        • The unqualified name of the type declaring the constructor for a constructor.
        • The parameter named as defined by the ParameterNameProvider for a method or constructor parameter.
        • The literal <cross-parameter> for a method or constructor cross-parameter.
        • The literal <return value> for a method or constructor return value.
        Returns:
        name of the element which the node represents
      • isInIterable

        boolean isInIterable()
        Returns:
        true if the node represents an object contained in an Iterable or in a Map, false otherwise
      • getIndex

        Integer getIndex()
        Returns:
        the index the node is placed in if contained in an array or List; null otherwise
      • getKey

        Object getKey()
        Returns:
        the key the node is placed in if contained in a Map, null otherwise
      • as

        <T extends Path.Node> T as(Class<T> nodeType)
        Narrows the type of this node down to the given type. The appropriate type should be checked before by calling getKind().
        Type Parameters:
        T - the type to narrow down to
        Parameters:
        nodeType - class object representing the descriptor type to narrow down to to
        Returns:
        this node narrowed down to the given type.
        Throws:
        ClassCastException - If this node is not assignable to the type T
        Since:
        1.1
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.

AltStyle によって変換されたページ (->オリジナル) /