Class Theme

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Rule>, Collection<Rule>, List<Rule>, RandomAccess

public class Theme extends ArrayList<Rule>
Guise theme specification.
Author:
Garret Wilson
See Also:
  • Field Details

    • FILENAME_EXTENSION

      public static final String FILENAME_EXTENSION
      The extension for Guise theme resource names.
      See Also:
    • MEDIA_TYPE

      public static final com.globalmentor.net.MediaType MEDIA_TYPE
      The media type for theme resources: application/theme+turf.
    • THEME_NAMESPACE_PREFIX

      public static final String THEME_NAMESPACE_PREFIX
      The recommended prefix to the theme ontology namespace.
      See Also:
    • THEME_NAMESPACE_URI

      public static final URI THEME_NAMESPACE_URI
      The URI to the theme ontology namespace.
    • PARENT_URI_PROPERTY_URI

      public static final URI PARENT_URI_PROPERTY_URI
      The property for the URI of the theme's parent.
    • RESOURCES_PROPERTY_URI

      public static final URI RESOURCES_PROPERTY_URI
      The resources property name.
    • COLOR_SELECTED_BACKGROUND

      public static final Color COLOR_SELECTED_BACKGROUND
      Standard theme color.
    • LABEL_ABOUT

      public static final String LABEL_ABOUT
      Standard theme label.
    • LABEL_ABOUT_X

      public static final String LABEL_ABOUT_X
      Standard theme label.
    • LABEL_ACCEPT

      public static final String LABEL_ACCEPT
      Standard theme label.
    • LABEL_ACCESS

      public static final String LABEL_ACCESS
      Standard theme label.
    • LABEL_ACCESS_X

      public static final String LABEL_ACCESS_X
      Standard theme label.
    • LABEL_ADD

      public static final String LABEL_ADD
      Standard theme label.
    • LABEL_ADD_X

      public static final String LABEL_ADD_X
      Standard theme label.
    • LABEL_AUDIO

      public static final String LABEL_AUDIO
      Standard theme label.
    • LABEL_BROWSE

      public static final String LABEL_BROWSE
      Standard theme label.
    • LABEL_CALENDAR

      public static final String LABEL_CALENDAR
      Standard theme label.
    • LABEL_CANCEL

      public static final String LABEL_CANCEL
      Standard theme label.
    • LABEL_CLOSE

      public static final String LABEL_CLOSE
      Standard theme label.
    • LABEL_CONFIRM

      public static final String LABEL_CONFIRM
      Standard theme label.
    • LABEL_DATE

      public static final String LABEL_DATE
      Standard theme label.
    • LABEL_DEFAULT

      public static final String LABEL_DEFAULT
      Standard theme label.
    • LABEL_DELETE

      public static final String LABEL_DELETE
      Standard theme label.
    • LABEL_DELETE_X

      public static final String LABEL_DELETE_X
      Standard theme label.
    • LABEL_DOWNLOAD

      public static final String LABEL_DOWNLOAD
      Standard theme label.
    • LABEL_EDIT

      public static final String LABEL_EDIT
      Standard theme label.
    • LABEL_EMAIL

      public static final String LABEL_EMAIL
      Standard theme label.
    • LABEL_ERROR

      public static final String LABEL_ERROR
      Standard theme label.
    • LABEL_FINISH

      public static final String LABEL_FINISH
      Standard theme label.
    • LABEL_FIRST

      public static final String LABEL_FIRST
      Standard theme label.
    • LABEL_FOLDER

      public static final String LABEL_FOLDER
      Standard theme label.
    • LABEL_GENERAL

      public static final String LABEL_GENERAL
      Standard theme label.
    • LABEL_HELP

      public static final String LABEL_HELP
      Standard theme label.
    • LABEL_HOME

      public static final String LABEL_HOME
      Standard theme label.
    • LABEL_IMAGE

      public static final String LABEL_IMAGE
      Standard theme label.
    • LABEL_INSERT

      public static final String LABEL_INSERT
      Standard theme label.
    • LABEL_JOIN

      public static final String LABEL_JOIN
      Standard theme label.
    • LABEL_JOIN_X

      public static final String LABEL_JOIN_X
      Standard theme label.
    • LABEL_LAST

      public static final String LABEL_LAST
      Standard theme label.
    • LABEL_LOGIN

      public static final String LABEL_LOGIN
      Standard theme label.
    • LABEL_LOGOUT

      public static final String LABEL_LOGOUT
      Standard theme label.
    • LABEL_LOWER

      public static final String LABEL_LOWER
      Standard theme label.
    • LABEL_MISSING

      public static final String LABEL_MISSING
      Standard theme label.
    • LABEL_NEXT

      public static final String LABEL_NEXT
      Standard theme label.
    • LABEL_NEW

      public static final String LABEL_NEW
      Standard theme label.
    • LABEL_NEW_X

      public static final String LABEL_NEW_X
      Standard theme label.
    • LABEL_ORDER

      public static final String LABEL_ORDER
      Standard theme label.
    • LABEL_PASSWORD

      public static final String LABEL_PASSWORD
      Standard theme label.
    • LABEL_PASSWORD_VERIFICATION

      public static final String LABEL_PASSWORD_VERIFICATION
      Standard theme label.
    • LABEL_PREVIOUS

      public static final String LABEL_PREVIOUS
      Standard theme label.
    • LABEL_PRODUCT_JAVA

      public static final String LABEL_PRODUCT_JAVA
      Standard theme label.
    • LABEL_PROPERTIES

      public static final String LABEL_PROPERTIES
      Standard theme label.
    • LABEL_X_PROPERTIES

      public static final String LABEL_X_PROPERTIES
      Standard theme label.
    • LABEL_RAISE

      public static final String LABEL_RAISE
      Standard theme label.
    • LABEL_READ

      public static final String LABEL_READ
      Standard theme label.
    • LABEL_REFRESH

      public static final String LABEL_REFRESH
      Standard theme label.
    • LABEL_REJECT

      public static final String LABEL_REJECT
      Standard theme label.
    • LABEL_REMOVE

      public static final String LABEL_REMOVE
      Standard theme label.
    • LABEL_RENAME

      public static final String LABEL_RENAME
      Standard theme label.
    • LABEL_RENAME_X

      public static final String LABEL_RENAME_X
      Standard theme label.
    • LABEL_RESOURCE

      public static final String LABEL_RESOURCE
      Standard theme label.
    • LABEL_RETRY

      public static final String LABEL_RETRY
      Standard theme label.
    • LABEL_SAVE

      public static final String LABEL_SAVE
      Standard theme label.
    • LABEL_SORT

      public static final String LABEL_SORT
      Standard theme label.
    • LABEL_START

      public static final String LABEL_START
      Standard theme label.
    • LABEL_STOP

      public static final String LABEL_STOP
      Standard theme label.
    • LABEL_SUBMIT

      public static final String LABEL_SUBMIT
      Standard theme label.
    • LABEL_SUBTRACT

      public static final String LABEL_SUBTRACT
      Standard theme label.
    • LABEL_TIME

      public static final String LABEL_TIME
      Standard theme label.
    • LABEL_TOTAL

      public static final String LABEL_TOTAL
      Standard theme label.
    • LABEL_TYPE

      public static final String LABEL_TYPE
      Standard theme label.
    • LABEL_UNKNOWN

      public static final String LABEL_UNKNOWN
      Standard theme label.
    • LABEL_UPLOAD

      public static final String LABEL_UPLOAD
      Standard theme label.
    • LABEL_UPLOAD_TO_X

      public static final String LABEL_UPLOAD_TO_X
      Standard theme label.
    • LABEL_URI

      public static final String LABEL_URI
      Standard theme label.
    • LABEL_USERNAME

      public static final String LABEL_USERNAME
      Standard theme label.
    • LABEL_VERIFTY

      public static final String LABEL_VERIFTY
      Standard theme label.
    • LABEL_VERSION

      public static final String LABEL_VERSION
      Standard theme label.
    • LABEL_VIEW

      public static final String LABEL_VIEW
      Standard theme label.
    • ICON_ABOUT

      public static final URI ICON_ABOUT
      Standard theme icon.
    • ICON_ERROR

      public static final URI ICON_ERROR
      Standard theme icon.
    • ICON_HELP

      public static final URI ICON_HELP
      Standard theme icon.
    • ICON_INFO

      public static final URI ICON_INFO
      Standard theme icon.
    • ICON_QUESTION

      public static final URI ICON_QUESTION
      Standard theme icon.
    • ICON_STOP

      public static final URI ICON_STOP
      Standard theme icon.
    • ICON_WARN

      public static final URI ICON_WARN
      Standard theme icon.
    • GLYPH_ABOUT

      public static final URI GLYPH_ABOUT
      Standard theme glyph icon.
    • GLYPH_ACCEPT

      public static final URI GLYPH_ACCEPT
      Standard theme glyph icon.
    • GLYPH_ACCEPT_MULTIPLE

      public static final URI GLYPH_ACCEPT_MULTIPLE
      Standard theme glyph icon.
    • GLYPH_ACCESS

      public static final URI GLYPH_ACCESS
      Standard theme glyph icon.
    • GLYPH_ADD

      public static final URI GLYPH_ADD
      Standard theme glyph icon.
    • GLYPH_ANIMATION

      public static final URI GLYPH_ANIMATION
      Standard theme glyph icon.
    • GLYPH_ARROW_DOWN

      public static final URI GLYPH_ARROW_DOWN
      Standard theme glyph icon.
    • GLYPH_ARROW_LEFT

      public static final URI GLYPH_ARROW_LEFT
      Standard theme glyph icon.
    • GLYPH_ARROW_RIGHT

      public static final URI GLYPH_ARROW_RIGHT
      Standard theme glyph icon.
    • GLYPH_ARROW_UP

      public static final URI GLYPH_ARROW_UP
      Standard theme glyph icon.
    • GLYPH_AUDIO

      public static final URI GLYPH_AUDIO
      Standard theme glyph icon.
    • GLYPH_BLANK

      public static final URI GLYPH_BLANK
      Standard theme glyph icon.
    • GLYPH_BROWSE

      public static final URI GLYPH_BROWSE
      Standard theme glyph icon.
    • GLYPH_BUSY

      public static final URI GLYPH_BUSY
      Standard theme glyph icon.
    • GLYPH_CALENDAR

      public static final URI GLYPH_CALENDAR
      Standard theme glyph icon.
    • GLYPH_CANCEL

      public static final URI GLYPH_CANCEL
      Standard theme glyph icon.
    • GLYPH_CLOSE

      public static final URI GLYPH_CLOSE
      Standard theme glyph icon.
    • GLYPH_CONFIRM

      public static final URI GLYPH_CONFIRM
      Standard theme glyph icon.
    • GLYPH_DELETE

      public static final URI GLYPH_DELETE
      Standard theme glyph icon.
    • GLYPH_DOCUMENT

      public static final URI GLYPH_DOCUMENT
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_BROKEN

      public static final URI GLYPH_DOCUMENT_BROKEN
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_CONTENT

      public static final URI GLYPH_DOCUMENT_CONTENT
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_NEW

      public static final URI GLYPH_DOCUMENT_NEW
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_PREVIEW

      public static final URI GLYPH_DOCUMENT_PREVIEW
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_RICH_CONTENT

      public static final URI GLYPH_DOCUMENT_RICH_CONTENT
      Standard theme glyph icon.
    • GLYPH_DOCUMENT_STACK

      public static final URI GLYPH_DOCUMENT_STACK
      Standard theme glyph icon.
    • GLYPH_DOWNLOAD

      public static final URI GLYPH_DOWNLOAD
      Standard theme glyph icon.
    • GLYPH_EDIT

      public static final URI GLYPH_EDIT
      Standard theme glyph icon.
    • GLYPH_EMAIL

      public static final URI GLYPH_EMAIL
      Standard theme glyph icon.
    • GLYPH_ENTER

      public static final URI GLYPH_ENTER
      Standard theme glyph icon.
    • GLYPH_ERROR

      public static final URI GLYPH_ERROR
      Standard theme glyph icon.
    • GLYPH_EXIT

      public static final URI GLYPH_EXIT
      Standard theme glyph icon.
    • GLYPH_EXCLAMATION

      public static final URI GLYPH_EXCLAMATION
      Standard theme glyph icon.
    • GLYPH_EYEGLASSES

      public static final URI GLYPH_EYEGLASSES
      Standard theme glyph icon.
    • GLYPH_FINISH

      public static final URI GLYPH_FINISH
      Standard theme glyph icon.
    • GLYPH_FIRST

      public static final URI GLYPH_FIRST
      Standard theme glyph icon.
    • GLYPH_FOLDER

      public static final URI GLYPH_FOLDER
      Standard theme glyph icon.
    • GLYPH_FOLDER_CLOSED

      public static final URI GLYPH_FOLDER_CLOSED
      Standard theme glyph icon.
    • GLYPH_FOLDER_OPEN

      public static final URI GLYPH_FOLDER_OPEN
      Standard theme glyph icon.
    • GLYPH_FOLDER_RICH_CONTENT

      public static final URI GLYPH_FOLDER_RICH_CONTENT
      Standard theme glyph icon.
    • GLYPH_FOLDER_TREE

      public static final URI GLYPH_FOLDER_TREE
      Standard theme glyph icon.
    • GLYPH_HELP

      public static final URI GLYPH_HELP
      Standard theme glyph icon.
    • GLYPH_HIDE

      public static final URI GLYPH_HIDE
      Standard theme glyph icon.
    • GLYPH_HIERARCHY

      public static final URI GLYPH_HIERARCHY
      Standard theme glyph icon.
    • GLYPH_HOME

      public static final URI GLYPH_HOME
      Standard theme glyph icon.
    • GLYPH_IMAGE

      public static final URI GLYPH_IMAGE
      Standard theme glyph icon.
    • GLYPH_INFO

      public static final URI GLYPH_INFO
      Standard theme glyph icon.
    • GLYPH_INSERT

      public static final URI GLYPH_INSERT
      Standard theme glyph icon.
    • GLYPH_JOIN

      public static final URI GLYPH_JOIN
      Standard theme glyph icon.
    • GLYPH_KEY

      public static final URI GLYPH_KEY
      Standard theme glyph icon.
    • GLYPH_LAST

      public static final URI GLYPH_LAST
      Standard theme glyph icon.
    • GLYPH_LIST

      public static final URI GLYPH_LIST
      Standard theme glyph icon.
    • GLYPH_LOCK_CLOSED

      public static final URI GLYPH_LOCK_CLOSED
      Standard theme glyph icon.
    • GLYPH_LOCK_OPEN

      public static final URI GLYPH_LOCK_OPEN
      Standard theme glyph icon.
    • GLYPH_LOGIN

      public static final URI GLYPH_LOGIN
      Standard theme glyph icon.
    • GLYPH_LOGOUT

      public static final URI GLYPH_LOGOUT
      Standard theme glyph icon.
    • GLYPH_MEDIA_ADVANCE

      public static final URI GLYPH_MEDIA_ADVANCE
      Standard theme glyph icon.
    • GLYPH_MEDIA_NEXT

      public static final URI GLYPH_MEDIA_NEXT
      Standard theme glyph icon.
    • GLYPH_MEDIA_PAUSE

      public static final URI GLYPH_MEDIA_PAUSE
      Standard theme glyph icon.
    • GLYPH_MEDIA_PLAY

      public static final URI GLYPH_MEDIA_PLAY
      Standard theme glyph icon.
    • GLYPH_MEDIA_PREVIOUS

      public static final URI GLYPH_MEDIA_PREVIOUS
      Standard theme glyph icon.
    • GLYPH_MEDIA_RECEDE

      public static final URI GLYPH_MEDIA_RECEDE
      Standard theme glyph icon.
    • GLYPH_MEDIA_RECORD

      public static final URI GLYPH_MEDIA_RECORD
      Standard theme glyph icon.
    • GLYPH_MEDIA_STOP

      public static final URI GLYPH_MEDIA_STOP
      Standard theme glyph icon.
    • GLYPH_MISSING

      public static final URI GLYPH_MISSING
      Standard theme glyph icon.
    • GLYPH_MUSIC

      public static final URI GLYPH_MUSIC
      Standard theme glyph icon.
    • GLYPH_NEXT

      public static final URI GLYPH_NEXT
      Standard theme glyph icon.
    • GLYPH_ORDER

      public static final URI GLYPH_ORDER
      Standard theme glyph icon.
    • GLYPH_PASSWORD

      public static final URI GLYPH_PASSWORD
      Standard theme glyph icon.
    • GLYPH_PICTURE

      public static final URI GLYPH_PICTURE
      Standard theme glyph icon.
    • GLYPH_POLYGON_CURVED

      public static final URI GLYPH_POLYGON_CURVED
      Standard theme glyph icon.
    • GLYPH_POLYGON_POINTS

      public static final URI GLYPH_POLYGON_POINTS
      Standard theme glyph icon.
    • GLYPH_PREVIEW

      public static final URI GLYPH_PREVIEW
      Standard theme glyph icon.
    • GLYPH_PREVIOUS

      public static final URI GLYPH_PREVIOUS
      Standard theme glyph icon.
    • GLYPH_PRODUCT_JAVA

      public static final URI GLYPH_PRODUCT_JAVA
      Standard theme glyph icon.
    • GLYPH_PROPERTIES

      public static final URI GLYPH_PROPERTIES
      Standard theme glyph icon.
    • GLYPH_QUESTION

      public static final URI GLYPH_QUESTION
      Standard theme glyph icon.
    • GLYPH_REFRESH

      public static final URI GLYPH_REFRESH
      Standard theme glyph icon.
    • GLYPH_REMOVE

      public static final URI GLYPH_REMOVE
      Standard theme glyph icon.
    • GLYPH_REJECT

      public static final URI GLYPH_REJECT
      Standard theme glyph icon.
    • GLYPH_REJECT_MULTIPLE

      public static final URI GLYPH_REJECT_MULTIPLE
      Standard theme glyph icon.
    • GLYPH_RENAME

      public static final URI GLYPH_RENAME
      Standard theme glyph icon.
    • GLYPH_RESOURCE

      public static final URI GLYPH_RESOURCE
      Standard theme glyph icon.
    • GLYPH_RETRY

      public static final URI GLYPH_RETRY
      Standard theme glyph icon.
    • GLYPH_SAVE

      public static final URI GLYPH_SAVE
      Standard theme glyph icon.
    • GLYPH_SELECTED

      public static final URI GLYPH_SELECTED
      Standard theme glyph icon.
    • GLYPH_SORT

      public static final URI GLYPH_SORT
      Standard theme glyph icon.
    • GLYPH_SPEECH_BUBBLE

      public static final URI GLYPH_SPEECH_BUBBLE
      Standard theme glyph icon.
    • GLYPH_SPEECH_BUBBLE_TEXT

      public static final URI GLYPH_SPEECH_BUBBLE_TEXT
      Standard theme glyph icon.
    • GLYPH_SPEECH_BUBBLE_TEXT_ADD

      public static final URI GLYPH_SPEECH_BUBBLE_TEXT_ADD
      Standard theme glyph icon.
    • GLYPH_START

      public static final URI GLYPH_START
      Standard theme glyph icon.
    • GLYPH_STOP

      public static final URI GLYPH_STOP
      Standard theme glyph icon.
    • GLYPH_STRING_EDIT

      public static final URI GLYPH_STRING_EDIT
      Standard theme glyph icon.
    • GLYPH_SUBMIT

      public static final URI GLYPH_SUBMIT
      Standard theme glyph icon.
    • GLYPH_SUBTRACT

      public static final URI GLYPH_SUBTRACT
      Standard theme glyph icon.
    • GLYPH_THUMBNAILS

      public static final URI GLYPH_THUMBNAILS
      Standard theme glyph icon.
    • GLYPH_TREE

      public static final URI GLYPH_TREE
      Standard theme glyph icon.
    • GLYPH_UNSELECTED

      public static final URI GLYPH_UNSELECTED
      Standard theme glyph icon.
    • GLYPH_UPLOAD

      public static final URI GLYPH_UPLOAD
      Standard theme glyph icon.
    • GLYPH_USER

      public static final URI GLYPH_USER
      Standard theme glyph icon.
    • GLYPH_VERIFY

      public static final URI GLYPH_VERIFY
      Standard theme glyph icon.
    • GLYPH_VIEW

      public static final URI GLYPH_VIEW
      Standard theme glyph icon.
    • GLYPH_WARN

      public static final URI GLYPH_WARN
      Standard theme glyph icon.
    • MESSAGE_BUSY

      public static final String MESSAGE_BUSY
      Standard theme message.
    • MESSAGE_PASSWORD_INVALID

      public static final String MESSAGE_PASSWORD_INVALID
      Standard theme message.
    • MESSAGE_PASSWORD_UNVERIFIED

      public static final String MESSAGE_PASSWORD_UNVERIFIED
      Standard theme message.
    • MESSAGE_TASK_SUCCESS

      public static final String MESSAGE_TASK_SUCCESS
      Standard theme message.
    • MESSAGE_USER_INVALID

      public static final String MESSAGE_USER_INVALID
      Standard theme message.
    • MESSAGE_USER_EXISTS

      public static final String MESSAGE_USER_EXISTS
      Standard theme message.
    • CURSOR_CROSSHAIR

      public static final URI CURSOR_CROSSHAIR
      Standard theme cursor.
    • CURSOR_DEFAULT

      public static final URI CURSOR_DEFAULT
      Standard theme cursor.
    • CURSOR_HELP

      public static final URI CURSOR_HELP
      Standard theme cursor.
    • CURSOR_MOVE

      public static final URI CURSOR_MOVE
      Standard theme cursor.
    • CURSOR_POINTER

      public static final URI CURSOR_POINTER
      Standard theme cursor.
    • CURSOR_PROGRESS

      public static final URI CURSOR_PROGRESS
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_FAR

      public static final URI CURSOR_RESIZE_LINE_FAR
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_FAR_PAGE_FAR

      public static final URI CURSOR_RESIZE_LINE_FAR_PAGE_FAR
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_FAR_PAGE_NEAR

      public static final URI CURSOR_RESIZE_LINE_FAR_PAGE_NEAR
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_NEAR

      public static final URI CURSOR_RESIZE_LINE_NEAR
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_NEAR_PAGE_FAR

      public static final URI CURSOR_RESIZE_LINE_NEAR_PAGE_FAR
      Standard theme cursor.
    • CURSOR_RESIZE_LINE_NEAR_PAGE_NEAR

      public static final URI CURSOR_RESIZE_LINE_NEAR_PAGE_NEAR
      Standard theme cursor.
    • CURSOR_RESIZE_PAGE_FAR

      public static final URI CURSOR_RESIZE_PAGE_FAR
      Standard theme cursor.
    • CURSOR_RESIZE_PAGE_NEAR

      public static final URI CURSOR_RESIZE_PAGE_NEAR
      Standard theme cursor.
    • CURSOR_TEXT

      public static final URI CURSOR_TEXT
      Standard theme cursor.
    • CURSOR_WAIT

      public static final URI CURSOR_WAIT
      Standard theme cursor.
    • SLIDER_THUMB_X_IMAGE

      public static final URI SLIDER_THUMB_X_IMAGE
      Theme component.
    • SLIDER_THUMB_Y_IMAGE

      public static final URI SLIDER_THUMB_Y_IMAGE
      Theme component.
    • SLIDER_TRACK_X_IMAGE

      public static final URI SLIDER_TRACK_X_IMAGE
      Theme component.
    • SLIDER_TRACK_Y_IMAGE

      public static final URI SLIDER_TRACK_Y_IMAGE
      Theme component.
  • Constructor Details

    • Theme

      public Theme(URI uri, io.urf.model.UrfResourceDescription description)
      URI and description constructor.
      Parameters:
      uri - The URI of the theme.
      description - The theme description, loaded from a legacy Guise theme file.
  • Method Details

    • getDescription

      public io.urf.model.UrfResourceDescription getDescription()
      Returns:
      The theme description.
    • getParent

      public Theme getParent()
      Returns:
      The theme parent, or null if there is no resolving parent.
    • setParent

      public void setParent(Theme newParent)
      Sets the theme parent.
      Parameters:
      newParent - The new theme parent, or null if there should be no resolving parent.
    • getClassRules

      public Set<Rule> getClassRules(Object object)
      Retrieves the set of rules that selects the class of the given object, including parent classes. It is not guaranteed that the object will match all or any of the returned rules; only that the object's class is used as part of the selections of the returned rules.
      Parameters:
      object - The object for which class-selected rules should be returned.
      Returns:
      A set of all rules that reference a class that selects the given object's class.
      Throws:
      NullPointerException - if the given object is null.
    • getURI

      public URI getURI()
      Returns:
      The URI of the theme.
    • getParentURI

      public URI getParentURI()
      Retrieves the URI indicating the parent theme.
      Returns:
      The URI indicating the parent theme, or null if no parent theme is indicated or the value is not a URI.
    • getResourceResources

      public Set<Object> getResourceResources(Locale locale)
      Retrieves the resources URF resources. Each resource may indicate an external set of resources to load by providing a reference URI, or be a map of resource definitions.
      Parameters:
      locale - The locale of the resource to be retrieved.
      Returns:
      The list of resources that indicate resources locations and/or contain resource definitions.
    • updateRules

      public void updateRules() throws ClassNotFoundException
      Updates the internal maps of rules. This method should be called after rules are modified so that rules will be applied correctly in the future.
      Throws:
      ClassNotFoundException - if one of the rules selects a class that cannot be found.
    • apply

      public void apply(Object object)
      Applies this theme to the given object. Any parent theme is first applied to the object before this theme is applied.
      Parameters:
      object - The object to which this theme should be applied.
      Throws:
      NullPointerException - if the given object is null.
      IllegalStateException - if a resource is a Java-typed resource the class of which cannot be found.
      IllegalStateException - if a particular value is not an appropriate argument for the corresponding property.
      IllegalStateException - If a particular property could not be accessed.
      IllegalStateException - if a resource indicates a Java class the constructor of which throws an exception.