Class Properties

java.lang.Object
org.saidone.unrest.client.Properties

public final class Properties extends Object
Typed property factories shared by all write clients. Singular factories create scalars; plural factories create explicit lists, including singleton and empty lists. Use nullValue() to clear a scalar and an empty plural factory to clear a list. Omit a property to preserve it on update.

The repository validates value kinds and cardinality against its dictionary; scalars and lists are never implicitly interchanged. These factories do not depend on Alfresco repository classes.

  • Method Summary

    Modifier and Type
    Method
    Description
    static org.saidone.unrest.api.Property
    bool(boolean value)
     
    static org.saidone.unrest.api.Property
    booleans(Boolean... values)
     
    static org.saidone.unrest.api.Property
    decimal(double value)
     
    static org.saidone.unrest.api.Property
    decimals(double... values)
     
    static org.saidone.unrest.api.Property
    integer(long value)
     
    static org.saidone.unrest.api.Property
    integers(long... values)
     
    static org.saidone.unrest.api.Property
    nodeRef(String value)
     
    static org.saidone.unrest.api.Property
    nodeRefs(String... values)
     
    static org.saidone.unrest.api.Property
    Explicit null for a single-valued property; list properties use an empty list instead.
    static org.saidone.unrest.api.Property
    qname(String value)
     
    static org.saidone.unrest.api.Property
    qnames(String... values)
     
    static org.saidone.unrest.api.Property
    text(String value)
     
    static org.saidone.unrest.api.Property
    texts(String... values)
     
    static org.saidone.unrest.api.Property
     
    static org.saidone.unrest.api.Property
    timestamps(Instant... values)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • text

      public static org.saidone.unrest.api.Property text(String value)
    • texts

      public static org.saidone.unrest.api.Property texts(String... values)
    • integer

      public static org.saidone.unrest.api.Property integer(long value)
    • integers

      public static org.saidone.unrest.api.Property integers(long... values)
    • decimal

      public static org.saidone.unrest.api.Property decimal(double value)
    • decimals

      public static org.saidone.unrest.api.Property decimals(double... values)
    • bool

      public static org.saidone.unrest.api.Property bool(boolean value)
    • booleans

      public static org.saidone.unrest.api.Property booleans(Boolean... values)
    • timestamp

      public static org.saidone.unrest.api.Property timestamp(Instant value)
    • timestamps

      public static org.saidone.unrest.api.Property timestamps(Instant... values)
    • nodeRef

      public static org.saidone.unrest.api.Property nodeRef(String value)
    • nodeRefs

      public static org.saidone.unrest.api.Property nodeRefs(String... values)
    • qname

      public static org.saidone.unrest.api.Property qname(String value)
    • qnames

      public static org.saidone.unrest.api.Property qnames(String... values)
    • nullValue

      public static org.saidone.unrest.api.Property nullValue()
      Explicit null for a single-valued property; list properties use an empty list instead.