public interface Property extends KNode
Komodo object
property.Modifier and Type | Field and Description |
---|---|
static Property[] |
NO_PROPS
An empty array of model properties.
|
getAbsolutePath, getName, getParent, getRepository
static final Property[] NO_PROPS
KPropertyFactory getPropertyFactory()
PropertyValueType getValueType(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if the property does not exist or an error occursInputStream getBinaryValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)binary
KException
- if the property does not exist or an error occursBoolean getBooleanValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)boolean
KException
- if the property does not exist or an error occursBoolean[] getBooleanValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)boolean
s (never null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursCalendar getDateValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
if the property doesn't existKException
- if the property does not exist or an error occursCalendar[] getDateValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursPropertyDescriptor getDescriptor(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursInteger getIntegerValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)integer
or null
if the property doesn't existKException
- if the property does not exist or an error occursInteger[] getIntegerValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)integer
s (never null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursDouble getDoubleValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)double
or null
if the property doesn't existKException
- if the property does not exist or an error occursDouble[] getDoubleValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)double
s (never null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursLong getLongValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
if the property doesn't existKException
- if the property does not exist or an error occursLong[] getLongValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursString getStringValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
if the property doesn't existKException
- if the property does not exist or an error occursString[] getStringValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursObject getValue(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
if the property doesn't existKException
- if the property does not exist or an error occursObject[] getValues(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if not a multi-value property, if property does not exist, or if an error occursboolean isMultiple(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursvoid set(Repository.UnitOfWork uow, Object... values) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)
Passing in null
will remove the existing property from its node.values
- the new value for single-valued properties or the new values for multi-valued properties (can be null
)KException
- if an error occursCopyright © 2013–2019. All rights reserved.