Class ScimAttributePath

java.lang.Object
com.revetsec.scim.ScimAttributePath

@Immutable @CheckReturnValue public final class ScimAttributePath extends Object
Immutable SCIM attribute-path syntax with an optional absolute schema URI and one optional subattribute. Equality folds ASCII letters throughout the structural path. Syntax success does not establish a registered schema or grant filtering permission. URI text is never fetched.
Since:
1.0.0
  • Method Details

    • fromExpressionResult

      Parses a complete bounded attribute path without surrounding whitespace. Names start with an ASCII letter and then contain ASCII letters, digits, underscore or hyphen. The narrowly supported $ref name can also represent a relative subattribute inside a ValuePath; declaring it as a top-level resource attribute still requires later schema binding. Schema IDs use bounded absolute URI syntax.
      Parameters:
      expression - the complete path expression
      Returns:
      syntactic success or a fixed invalidPath error
      Since:
      1.0.0
    • getSchemaId

      Returns the original schema ID spelling, when qualified.
      Returns:
      the original schema ID spelling, when qualified
      Since:
      1.0.0
    • getAttributeName

      Returns the original attribute-name spelling.
      Returns:
      the original attribute-name spelling
      Since:
      1.0.0
    • getSubAttributeName

      Returns the original subattribute-name spelling, when supplied.
      Returns:
      the original subattribute-name spelling, when supplied
      Since:
      1.0.0
    • toScimString

      Explicitly emits this path as SCIM data, preserving the component spellings supplied during parsing. This operation can disclose application attribute and schema names.
      Returns:
      the SCIM attribute-path expression
      Since:
      1.0.0
    • equals

      public boolean equals(@Nullable Object other)
      Returns whether the structural paths have equal ASCII-folded components.
      Overrides:
      equals in class Object
      Returns:
      whether the structural paths have equal ASCII-folded components
      Since:
      1.0.0
    • hashCode

      public int hashCode()
      Returns a hash of the same ASCII-folded components used by equality.
      Overrides:
      hashCode in class Object
      Returns:
      a hash of the same ASCII-folded components used by equality
      Since:
      1.0.0
    • toString

      Returns a fixed redacted description.
      Overrides:
      toString in class Object
      Returns:
      a fixed redacted description
      Since:
      1.0.0