Package org.cytoscape.property
Class SimpleCyProperty<P>
java.lang.Object
org.cytoscape.property.SimpleCyProperty<P>
- Type Parameters:
P
-
- All Implemented Interfaces:
CyProperty<P>
A simple implementation of CyProperty suitable for general purpose use.
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cytoscape.property.CyProperty
CyProperty.SavePolicy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Core Cytoscape Property (Cytoscape System Property)Fields inherited from interface org.cytoscape.property.CyProperty
DEFAULT_PROPS_CONFIG_DIR
-
Constructor Summary
ConstructorDescriptionSimpleCyProperty
(String name, P properties, Class<? extends P> propertyType, CyProperty.SavePolicy savePolicy) Properties is a non-null Properties object that this CyProperty object should encapsulate. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the CyProperty.Return a property object.Returns the type of the property object.Returns theCyProperty.SavePolicy
of the CyProperty.toString()
-
Field Details
-
CORE_PROPRERTY_NAME
Core Cytoscape Property (Cytoscape System Property)- See Also:
-
-
Constructor Details
-
SimpleCyProperty
public SimpleCyProperty(String name, P properties, Class<? extends P> propertyType, CyProperty.SavePolicy savePolicy) Properties is a non-null Properties object that this CyProperty object should encapsulate.- Parameters:
properties
- The non-null Properties object this CyProperty object should encapsulate. Throws NullPointerException if Properties is null.savePolicy
- theCyProperty.SavePolicy
of this CyProperty object.
-
-
Method Details
-
getName
Returns the name of the CyProperty.- Specified by:
getName
in interfaceCyProperty<P>
- Returns:
- The name of the CyProperty.
-
getProperties
Return a property object.- Specified by:
getProperties
in interfaceCyProperty<P>
- Returns:
- A property object of type P.
-
getSavePolicy
Returns theCyProperty.SavePolicy
of the CyProperty.- Specified by:
getSavePolicy
in interfaceCyProperty<P>
- Returns:
- the
CyProperty.SavePolicy
of the CyProperty.
-
getPropertyType
Returns the type of the property object.- Specified by:
getPropertyType
in interfaceCyProperty<P>
- Returns:
- the type of the property object.
-
toString
-