Klasse PropertyUtils

java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.PropertyUtils

public class PropertyUtils extends Object
This class provides basic JavaFX property related utility methods.

Refer to the JavaFX conventions in the VisibleMemberTable comments.

  • Methodendetails

    • getBaseName

      public String getBaseName(ExecutableElement propertyMethod)
      Returns a base name for a property method.

      Supposing we have BooleanProperty acmeProperty(), then “acme” will be returned.

      Parameter:
      propertyMethod -
      Gibt zurück:
      the base name of a property method.
    • getGetName

      public String getGetName(ExecutableElement propertyMethod)
      Returns a property getter’s name.

      Supposing we have a property method DoubleProperty acmeProperty(), then “getAcme” will be returned.

      Parameter:
      propertyMethod -
      Gibt zurück:
      the property getter’s name.
    • getIsName

      public String getIsName(ExecutableElement propertyMethod)
      Returns an “is” method’s name for a property method.

      Supposing we have a property method BooleanProperty acmeProperty(), then “isAcme” will be returned.

      Parameter:
      propertyMethod -
      Gibt zurück:
      the property is getter’s name.
    • hasIsMethod

      public boolean hasIsMethod(ExecutableElement propertyMethod)
      Returns true if a property method could have an “is” method, meaning isAcme could exist for a property method.
      Parameter:
      propertyMethod -
      Gibt zurück:
      true if the property could have an “is” method, false otherwise.
    • getSetName

      public String getSetName(ExecutableElement propertyMethod)
      Returns a property setter’s name.

      Supposing we have a property method DoubleProperty acmeProperty(), then “setAcme” will be returned.

      Parameter:
      propertyMethod -
      Gibt zurück:
      the property setter’s method name.
    • isValidSetterMethod

      public boolean isValidSetterMethod(ExecutableElement setterMethod)
      Returns true if the given setter method is a valid property setter method.
      Parameter:
      setterMethod -
      Gibt zurück:
      true if setter method, false otherwise.
    • isPropertyMethod

      public boolean isPropertyMethod(ExecutableElement propertyMethod)
      Returns true if the method is a property method.
      Parameter:
      propertyMethod -
      Gibt zurück:
      true if the method is a property method, false otherwise.