Class PropertyRef
- java.lang.Object
- 
- com.inductiveautomation.perspective.common.api.PropertyRef
 
- 
 public class PropertyRef extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static java.util.regex.PatternABSOLUTEPattern which checks for the validity of a an absolute path.static java.util.regex.PatternIDENTIFIERPattern which matches the validity of a Property Identifier as defined in the thePropertyRefdocumentation.static java.util.regex.PatternNAMEPattern representing a legal component name in a Property Reference path, such as a Container or Component name.static java.util.regex.PatternRELATIVEPattern to check that a property reference path is a 'Relative' reference, meaning it follows a linux-like relative path style such as ../peerComponentName.props.text, or ./childComonentName/deeperChild.custom.customProp1.static java.util.regex.PatternSHORTCUTPattern checks on the validity of a Property Reference which uses one of the shortcut prefixes such as this , view, or parent.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisParseable(java.lang.String propertyReference)Verifies the reference path matches the required syntax for successful parsing.
 
- 
- 
- 
Field Detail- 
NAMEpublic static final java.util.regex.Pattern NAME Pattern representing a legal component name in a Property Reference path, such as a Container or Component name. Enforced byComponentPropsDocumentModelandPerspectiveKeyEditor
 - 
IDENTIFIERpublic static final java.util.regex.Pattern IDENTIFIER Pattern which matches the validity of a Property Identifier as defined in the the PropertyRefdocumentation.Valid Examples: - this.props.value 
- this.custom.styleTree.size 
- parent.meta.name 
- aComponent.meta.name 
- DifferentComponent.meta.visible 
- _comp.meta.visible 
- _comp2.custom._aTree.textEntry1 
 - this.value -- ERROR: missing property scope
- this/childComp.meta.name -- ERROR: separator in shortcut
- parent/childComp.meta.name -- ERROR: separator in shortcut
- 2comp.meta.name -- ERROR: component name begins with number
- comp.custom.2ndIndex -- ERROR: property begins with number
 
 - 
ABSOLUTEpublic static final java.util.regex.Pattern ABSOLUTE Pattern which checks for the validity of a an absolute path.
 - 
RELATIVEpublic static final java.util.regex.Pattern RELATIVE Pattern to check that a property reference path is a 'Relative' reference, meaning it follows a linux-like relative path style such as ../peerComponentName.props.text, or ./childComonentName/deeperChild.custom.customProp1. Note that path separators can be used in relative references and as such should be used when needing to resolve deeper structures. Valid examples:- ../peerComponent.props.value 
- ./childComponent.props.value 
- ../../peerToParent.meta.name 
- .../peerToParent.meta.name 
 
 - 
SHORTCUTpublic static final java.util.regex.Pattern SHORTCUT Pattern checks on the validity of a Property Reference which uses one of the shortcut prefixes such as this , view, or parent. These shortcuts provide a convenient alternative for targeting properties within component, a component's parent, or the parent view. Path separators ("/") are not valid in shortcut references, so this/child.props.value is not valid. If one needs to reference a child component, then a relative reference such as./childComponent/aDeeperChild.props.value would be appropriate.
 
- 
 - 
Method Detail- 
isParseablepublic static boolean isParseable(java.lang.String propertyReference) Verifies the reference path matches the required syntax for successful parsing. Does not validate the location of any named items or properties in the path.- Parameters:
- propertyReference- a string representing a path to a valid property identifier.
- Returns:
- true if the provided string is formatted to be parsed as a PropertyReference
 
 
- 
 
-