Class PropertyDatabase

java.lang.Object
io.sf.carte.doc.style.css.property.PropertyDatabase

public final class PropertyDatabase extends Object
Database of device-independent CSS property information.
  • Method Details

    • getInstance

      public static PropertyDatabase getInstance()
      Gets an instance of this class.
      Returns:
      an instance of PropertyDatabase.
    • getValueFactory

      public ValueFactory getValueFactory()
      Get a value factory configured with defaults.
      Returns:
      the value factory used by this database.
    • isInherited

      public boolean isInherited(String name)
      Does this property inherit value by default?
      Parameters:
      name - the name of the property.
      Returns:
      true if inherits by default, false otherwise.
    • getInitialValue

      public StyleValue getInitialValue(String propertyName)
      Gives the initial device-independent initial (default) value for the given property.
      Parameters:
      propertyName - the property name.
      Returns:
      the initial CSS value, or null if no device-independent default could be found.
    • isKnownProperty

      public boolean isKnownProperty(String name)
      Is the supplied string the name of a known CSS property?
      Parameters:
      name - the name to test.
      Returns:
      true if it is a known CSS property, false otherwise.