Class PropertyNode
- java.lang.Object
-
- net.officefloor.compile.impl.structure.PropertyNode
-
- All Implemented Interfaces:
OfficeFloorManagedObjectSourcePropertyType
,OfficeFloorPropertyType
,OfficeFloorTeamSourcePropertyType
,ManagedObjectSourceProperty
,TeamSourceProperty
public class PropertyNode extends java.lang.Object implements OfficeFloorPropertyType, OfficeFloorTeamSourcePropertyType, OfficeFloorManagedObjectSourcePropertyType
Node identifying anProperty
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description PropertyNode(java.lang.String name, java.lang.String label, java.lang.String defaultValue)
Instantiate.PropertyNode(Property property)
Instantiate from aProperty
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyNode[]
constructPropertyNodes(PropertyList properties)
Constructs thePropertyNode
instances for the inputPropertyList
.java.lang.String
getDefaultValue()
Obtains the default value for thisProperty
.java.lang.String
getLabel()
Obtains the label to describe theProperty
.java.lang.String
getName()
Obtains the name for theProperty
.
-
-
-
Method Detail
-
constructPropertyNodes
public static PropertyNode[] constructPropertyNodes(PropertyList properties)
Constructs thePropertyNode
instances for the inputPropertyList
.- Parameters:
properties
-PropertyList
.- Returns:
PropertyNode
instances.
-
getName
public java.lang.String getName()
Description copied from interface:OfficeFloorPropertyType
Obtains the name for theProperty
.- Specified by:
getName
in interfaceManagedObjectSourceProperty
- Specified by:
getName
in interfaceOfficeFloorPropertyType
- Specified by:
getName
in interfaceTeamSourceProperty
- Returns:
- Name for the
Property
.
-
getLabel
public java.lang.String getLabel()
Description copied from interface:OfficeFloorPropertyType
Obtains the label to describe theProperty
.- Specified by:
getLabel
in interfaceManagedObjectSourceProperty
- Specified by:
getLabel
in interfaceOfficeFloorPropertyType
- Specified by:
getLabel
in interfaceTeamSourceProperty
- Returns:
- Label to describe the
Property
.
-
getDefaultValue
public java.lang.String getDefaultValue()
Description copied from interface:OfficeFloorPropertyType
Obtains the default value for thisProperty
.- Specified by:
getDefaultValue
in interfaceOfficeFloorManagedObjectSourcePropertyType
- Specified by:
getDefaultValue
in interfaceOfficeFloorPropertyType
- Specified by:
getDefaultValue
in interfaceOfficeFloorTeamSourcePropertyType
- Returns:
- Default value for this
Property
.
-
-