com.guiseframework.theme
Class Template

java.lang.Object
  extended by com.globalmentor.collections.ReadWriteLockDecorator
      extended by com.globalmentor.urf.AbstractURFScope
          extended by com.globalmentor.urf.DefaultURFResource
              extended by com.globalmentor.urf.AbstractClassTypedURFResource
                  extended by com.guiseframework.theme.Template
All Implemented Interfaces:
com.globalmentor.net.Resource, com.globalmentor.urf.URFResource, com.globalmentor.urf.URFScope, java.util.concurrent.locks.ReadWriteLock

public class Template
extends com.globalmentor.urf.AbstractClassTypedURFResource

An application template of a rule.

Author:
Garret Wilson

Field Summary
 
Fields inherited from interface com.globalmentor.net.Resource
URI_PROPERTY_NAME
 
Constructor Summary
Template()
          Default constructor.
Template(java.net.URI referenceURI)
          Reference URI constructor.
 
Method Summary
 void apply(java.lang.Object object, com.globalmentor.urf.ploop.PLOOPURFProcessor ploopProcessor)
          Applies this template to a given object.
 
Methods inherited from class com.globalmentor.urf.DefaultURFResource
addType, addTypeURI, alter, determineLabel, equals, getLabel, getName, getType, getTypes, getTypeURI, getURI, hashCode, hasTypeURI, setLabel, setName, setURI, toString
 
Methods inherited from class com.globalmentor.urf.AbstractURFScope
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from class com.globalmentor.collections.ReadWriteLockDecorator
readLock, writeLock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.globalmentor.urf.URFScope
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from interface java.util.concurrent.locks.ReadWriteLock
readLock, writeLock
 

Constructor Detail

Template

public Template()
Default constructor.


Template

public Template(java.net.URI referenceURI)
Reference URI constructor.

Parameters:
referenceURI - The reference URI for the new resource.
Method Detail

apply

public void apply(java.lang.Object object,
                  com.globalmentor.urf.ploop.PLOOPURFProcessor ploopProcessor)
           throws com.globalmentor.util.DataException,
                  java.lang.reflect.InvocationTargetException
Applies this template to a given object. Providing a PLOOP processor allows consistency of referenced values across template applications.

Parameters:
object - The object to which this template will be applied.
ploopProcessor - The PLOOP processor for setting object properties.
Throws:
java.lang.NullPointerException - if the given object and/or PLOOP processor is null.
com.globalmentor.util.DataException - if a resource is a Java-typed resource the class of which cannot be found.
com.globalmentor.util.DataException - if a particular value is not an appropriate argument for the corresponding property.
com.globalmentor.util.DataException - If a particular property could not be accessed.
java.lang.reflect.InvocationTargetException - if a resource indicates a Java class the constructor of which throws an exception.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.