public class PropertyImpl extends Object implements Property
Komodo object property
.Modifier and Type | Field and Description |
---|---|
static Object[] |
NO_VALUES
An empty array of values.
|
Constructor and Description |
---|
PropertyImpl(Repository propertyRepository,
String propertyPath) |
PropertyImpl(Repository propertyRepository,
String nodePath,
String propertyName) |
public static final Object[] NO_VALUES
public PropertyImpl(Repository propertyRepository, String propertyPath) throws KException
propertyRepository
- the repository where this property is located (cannot be null
)propertyPath
- the property path (cannot be empty)KException
- if there is an error constructing the propertypublic PropertyImpl(Repository propertyRepository, String nodePath, String propertyName) throws KException
propertyRepository
- the repository where this property is located (cannot be null
)nodePath
- the path to the parent node (cannot be empty)propertyName
- the name of the property (cannot be empty)KException
- if there is an error constructing the propertypublic KPropertyFactory getPropertyFactory()
getPropertyFactory
in interface Property
public String getAbsolutePath()
getAbsolutePath
in interface KNode
KNode.getAbsolutePath()
public InputStream getBinaryValue(Repository.UnitOfWork transaction) throws KException
getBinaryValue
in interface Property
KException
Property.getBinaryValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Boolean getBooleanValue(Repository.UnitOfWork transaction) throws KException
getBooleanValue
in interface Property
KException
Property.getBooleanValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Boolean[] getBooleanValues(Repository.UnitOfWork transaction) throws KException
getBooleanValues
in interface Property
KException
Property.getBooleanValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Calendar getDateValue(Repository.UnitOfWork transaction) throws KException
getDateValue
in interface Property
KException
Property.getDateValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Calendar[] getDateValues(Repository.UnitOfWork transaction) throws KException
getDateValues
in interface Property
KException
Property.getDateValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Double getDoubleValue(Repository.UnitOfWork transaction) throws KException
getDoubleValue
in interface Property
KException
Property.getDoubleValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Double[] getDoubleValues(Repository.UnitOfWork transaction) throws KException
getDoubleValues
in interface Property
KException
Property.getDoubleValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Integer getIntegerValue(Repository.UnitOfWork transaction) throws KException
getIntegerValue
in interface Property
KException
Property.getIntegerValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Integer[] getIntegerValues(Repository.UnitOfWork transaction) throws KException
getIntegerValues
in interface Property
KException
Property.getIntegerValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Long getLongValue(Repository.UnitOfWork transaction) throws KException
getLongValue
in interface Property
KException
Property.getLongValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Long[] getLongValues(Repository.UnitOfWork transaction) throws KException
getLongValues
in interface Property
KException
Property.getLongValues(org.komodo.spi.repository.Repository.UnitOfWork)
public String getName(Repository.UnitOfWork transaction) throws KException
getName
in interface KNode
KException
KNode.getName(org.komodo.spi.repository.Repository.UnitOfWork)
public KomodoObject getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public Repository getRepository()
getRepository
in interface KNode
KNode.getRepository()
public String getStringValue(Repository.UnitOfWork transaction) throws KException
getStringValue
in interface Property
KException
Property.getStringValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] getStringValues(Repository.UnitOfWork transaction) throws KException
getStringValues
in interface Property
KException
Property.getStringValues(org.komodo.spi.repository.Repository.UnitOfWork)
public Object getValue(Repository.UnitOfWork transaction) throws KException
getValue
in interface Property
KException
Property.getValue(org.komodo.spi.repository.Repository.UnitOfWork)
public Object[] getValues(Repository.UnitOfWork transaction) throws KException
getValues
in interface Property
KException
Property.getValues(org.komodo.spi.repository.Repository.UnitOfWork)
public PropertyDescriptor getDescriptor(Repository.UnitOfWork transaction) throws KException
getDescriptor
in interface Property
KException
Property.getDescriptor(org.komodo.spi.repository.Repository.UnitOfWork)
public PropertyValueType getValueType(Repository.UnitOfWork transaction) throws KException
getValueType
in interface Property
KException
Property.getValueType(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isMultiple(Repository.UnitOfWork transaction) throws KException
isMultiple
in interface Property
KException
Property.isMultiple(org.komodo.spi.repository.Repository.UnitOfWork)
public void set(Repository.UnitOfWork transaction, Object... values) throws KException
set
in interface Property
KException
Property.set(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.Object[])
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013–2019. All rights reserved.