public abstract class Attribute extends Object
Modifier | Constructor and Description |
---|---|
protected |
Attribute(IAttributeDefinition def,
Asset asset) |
Modifier and Type | Method and Description |
---|---|
abstract void |
acceptChanges()
Accept the changes to the attribute
|
protected void |
checkNull(Object value) |
protected void |
checkReadOnly() |
abstract Object[] |
getAddedValues()
Get values that were added
|
Asset |
getAsset()
Get the Asset that owns the attribute
|
IAttributeDefinition |
getDefinition()
Get the definition of the attribute
|
abstract Object |
getNewValue()
Get the new value of the attribute
|
abstract Object[] |
getNewValues()
Get the new Valued
|
abstract Object |
getOriginalValue()
Get the original value of the attribute
|
abstract Object[] |
getOriginalValues()
Get the original values
|
abstract Object[] |
getRemovedValues()
Get the values that were removed
|
Object |
getValue()
Get the current value of the attribute
|
Object[] |
getValues()
Get the current values of the attribute
|
abstract boolean |
hasChanged()
Has this attribute changed
|
abstract void |
rejectChanges()
Reject the changes to this attribute
|
protected Attribute(IAttributeDefinition def, Asset asset)
public Asset getAsset()
public IAttributeDefinition getDefinition()
public abstract Object getOriginalValue() throws APIException
APIException
- - APIExceptionpublic abstract Object getNewValue() throws APIException
APIException
- - APIExceptionpublic Object getValue() throws APIException
APIException
- - APIExceptionpublic abstract Object[] getOriginalValues()
public abstract Object[] getNewValues()
public abstract Object[] getAddedValues()
public abstract Object[] getRemovedValues()
public Object[] getValues()
public abstract boolean hasChanged()
public abstract void acceptChanges()
public abstract void rejectChanges()
protected void checkReadOnly()
protected void checkNull(Object value)
Copyright © 2015 VersionOne, Inc.. All rights reserved.