Package org.pkl.core
Interface Composite
- All Superinterfaces:
Serializable,Value
A container of properties.
-
Method Summary
Modifier and TypeMethodDescriptionSame asgetProperty(java.lang.String)except that this method returnsnullinstead ofPNullfor Pkl valuenull.Returns the properties of this composite.getProperty(String name) Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.getPropertyOrNull(String name) Shorthand forgetProperties().get(name);default booleanhasProperty(String name) Shorthand forgetProperties.containsKey(name).Methods inherited from interface org.pkl.core.Value
accept, accept, getClassInfo
-
Method Details
-
hasProperty
Shorthand forgetProperties.containsKey(name). -
getProperty
Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists. -
getPropertyOrNull
Shorthand forgetProperties().get(name); -
get
Same asgetProperty(java.lang.String)except that this method returnsnullinstead ofPNullfor Pkl valuenull. -
getProperties
Returns the properties of this composite.
-