Class RemoteModel.Util

java.lang.Object
dev.getelements.elements.rt.annotation.RemoteModel.Util
Enclosing class:
RemoteModel

public static final class RemoteModel.Util extends Object
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • findName

      public static Optional<String> findName(Class<?> cls)
      Finds the name of a type annotated with RemoteModel.
      Parameters:
      cls - the class
      Returns:
      an Optional<String>
    • getName

      public static String getName(Class<?> cls)
      Finds the name of a type annotated with RemoteModel.
      Parameters:
      cls - the class
      Returns:
      an Optional<String>
    • findScope

      public static Optional<RemoteScope> findScope(Class<?> cls, String protocol, String scope)
      Gets the definition matching scope and protocol.
      Parameters:
      cls - the type
      protocol - the protocol
      scope - the scope
      Returns:
      the Optional which matches.
    • getScope

      public static RemoteScope getScope(Class<?> cls, String protocol, String scope)
      Gets the definition matching scope and protocol.
      Parameters:
      cls - the type
      protocol - the protocol
      scope - the scope
      Returns:
      the RemoteScope which matches.