Package org.pkl.core

Interface Composite

  • All Superinterfaces:
    java.io.Serializable, Value
    All Known Implementing Classes:
    PModule, PObject

    public interface Composite
    extends Value
    A container of properties.
    • Method Detail

      • hasProperty

        default boolean hasProperty​(java.lang.String name)
        Shorthand for getProperties.containsKey(name).
      • getProperty

        java.lang.Object getProperty​(java.lang.String name)
        Returns the value of the property with the given name, or throws NoSuchPropertyException if no such property exists.
      • getPropertyOrNull

        default @Nullable java.lang.Object getPropertyOrNull​(java.lang.String name)
        Shorthand for getProperties().get(name);
      • getProperties

        java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Returns the properties of this composite.