Record Class Action

java.lang.Object
java.lang.Record
br.ufsc.labsec.signature.conformanceVerifier.pdf.Action
Record Components:
type - Tipo da ação
base - Objeto base no documento
path - Caminho do objeto
origin - Chave que referencia o objeto

public record Action(Action.ActionType type, org.apache.pdfbox.cos.COSBase base, Action.Path path, org.apache.pdfbox.cos.COSObjectKey origin) extends Record
Esta classe representa uma ação no dicionário MDP.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static enum 
    Enumeração dos tipos de ação em um dicionário MDP
    protected static class 
    Esta classe representa um caminho
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Action.ActionType type, org.apache.pdfbox.cos.COSBase base, Action.Path path, org.apache.pdfbox.cos.COSObjectKey origin)
    Construtor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pdfbox.cos.COSBase
    Retorna o objeto base no documento
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.apache.pdfbox.cos.COSObjectKey
    Retorna a chave que referencia o objeto
    Retorna o caminho do objeto
    final String
    Returns a string representation of this record class.
    Retorna o tipo da ação

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Action.ActionType type, org.apache.pdfbox.cos.COSBase base, Action.Path path, org.apache.pdfbox.cos.COSObjectKey origin)
      Construtor
      Parameters:
      type - Tipo da ação
      base - Objeto base no documento
      path - Caminho do objeto
      origin - Chave que referencia o objeto
  • Method Details

    • path

      public Action.Path path()
      Retorna o caminho do objeto
      Returns:
      O caminho do objeto
    • base

      public org.apache.pdfbox.cos.COSBase base()
      Retorna o objeto base no documento
      Returns:
      O objeto base no documento
    • type

      public Action.ActionType type()
      Retorna o tipo da ação
      Returns:
      O tipo da ação
    • origin

      public org.apache.pdfbox.cos.COSObjectKey origin()
      Retorna a chave que referencia o objeto
      Returns:
      A chave que referencia o objeto
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.