public class AccountingClassification extends uk.ac.ed.epcc.webapp.model.Classification implements PropertyContainer, ExpressionTarget, uk.ac.ed.epcc.webapp.model.data.reference.ReferenceProvider, UsageRecord
| Modifier and Type | Field and Description |
|---|---|
protected PropertyTargetClassificationFactory |
fac |
protected ExpressionTargetContainer |
proxy |
| Modifier | Constructor and Description |
|---|---|
protected |
AccountingClassification(PropertyTargetClassificationFactory<?> fac,
uk.ac.ed.epcc.webapp.model.data.Repository.Record res) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
evaluateExpression(PropExpression<T> expr)
Evaluate an expression on the target object
|
<T> T |
evaluateExpression(PropExpression<T> expr,
T def)
Evaluate expression with default.
|
java.util.Set<PropertyTag> |
getDefinedProperties()
Generate a set of all the properties defined in this container
|
ExpressionTargetFactory |
getExpressionTargetFactory() |
PropertyTargetClassificationFactory<? extends AccountingClassification> |
getFactory() |
java.lang.Object |
getKey()
Unique key for populating a Table
Note the Table may have entries from more than one
UsageProducer |
Parser |
getParser()
Get a
Parser used to parse expressions for
this target. |
<T> T |
getProperty(PropertyTag<T> tag)
Get the specified property from the container.
|
<T> T |
getProperty(PropertyTag<T> tag,
T def)
Get property with default.
|
uk.ac.ed.epcc.webapp.model.data.reference.IndexedReference |
getReference() |
void |
setAll(PropertyContainer source)
Copy all compatible properties from one container to another;
|
<T> void |
setOptionalProperty(PropertyTag<? super T> tag,
T value)
Set the specified property if it is supported
|
<T> void |
setProperty(PropertyTag<? super T> tag,
T value)
Set the specified property
|
<T> void |
setProperty(PropertyTag<T> tag,
PropertyContainer map) |
boolean |
supports(PropertyTag<?> tag)
Is the specified property supported by the container.
|
boolean |
writable(PropertyTag<?> tag)
Is the specified property supported for write.
|
compareTo, getDescription, getIdentifier, getName, getTableSpecification, setName, toStringaddToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getFactoryTag, getID, getIdentifier, getLogger, getMap, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, post_commit, postCreate, pre_commit, release, setContents, setDirty, setMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getIdentifierprotected final PropertyTargetClassificationFactory fac
protected final ExpressionTargetContainer proxy
protected AccountingClassification(PropertyTargetClassificationFactory<?> fac, uk.ac.ed.epcc.webapp.model.data.Repository.Record res)
public <T> T getProperty(PropertyTag<T> tag, T def)
PropertyTargetgetProperty in interface PropertyTargetT - Type of propertytag - PropertTag identifying propertydef - default valuepublic final <T> void setProperty(PropertyTag<T> tag, PropertyContainer map) throws InvalidPropertyException
InvalidPropertyExceptionpublic final <T> T getProperty(PropertyTag<T> tag) throws InvalidPropertyException
PropertyContainergetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertytag - PropertyTag identifying propertypublic final <T> void setProperty(PropertyTag<? super T> tag, T value) throws InvalidPropertyException
PropertyContainersetProperty in interface PropertyContainerInvalidPropertyExceptionT - type of propertytag - PropertyTag identifying propertypublic final <T> void setOptionalProperty(PropertyTag<? super T> tag, T value)
PropertyContainersetOptionalProperty in interface PropertyContainerT - type of propertytag - PropertyTag identifying propertypublic final boolean supports(PropertyTag<?> tag)
PropertyContainersupports in interface PropertyContainerpublic final boolean writable(PropertyTag<?> tag)
PropertyContainerwritable in interface PropertyContainerpublic <T> T evaluateExpression(PropExpression<T> expr) throws InvalidPropertyException
ExpressionTargetevaluateExpression in interface ExpressionTargetInvalidPropertyExceptionT - type of expressionexpr - expressionpublic <T> T evaluateExpression(PropExpression<T> expr, T def)
ExpressionTargetevaluateExpression in interface ExpressionTargetT - type of expressionexpr - expressiondef - default valuepublic ExpressionTargetFactory getExpressionTargetFactory()
public PropertyTargetClassificationFactory<? extends AccountingClassification> getFactory()
public uk.ac.ed.epcc.webapp.model.data.reference.IndexedReference getReference()
getReference in interface uk.ac.ed.epcc.webapp.model.data.reference.ReferenceProviderpublic java.util.Set<PropertyTag> getDefinedProperties()
PropertyContainergetDefinedProperties in interface PropertyContainerpublic void setAll(PropertyContainer source)
PropertyContainersetAll in interface PropertyContainersource - PropertyContainerpublic Parser getParser()
ExpressionTargetParser used to parse expressions for
this target.getParser in interface ExpressionTargetpublic java.lang.Object getKey()
UsageRecordUsageProducergetKey in interface UsageRecord