public class JcrPropertyFactory extends AbstractJcrFactory implements KPropertyFactory
DELIMITER
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
ABSOLUTE_PATH, NAME
Constructor and Description |
---|
JcrPropertyFactory(KObjectFactory nodeFactory) |
nodeTypeManager
public JcrPropertyFactory(KObjectFactory nodeFactory)
public Object convert(Object value, PropertyValueType type) throws KException
convert
in interface KPropertyFactory
value
- the value (cannot be null
)type
- the required type of the propertynull
)KException
- if an error occurspublic String getName(Repository.UnitOfWork transaction, Property property) throws KException
getName
in interface KPropertyFactory
KException
public KomodoObject getParent(Repository.UnitOfWork transaction, Property property) throws KException
getParent
in interface KPropertyFactory
KException
public PropertyValueType getType(Repository.UnitOfWork transaction, Property property) throws KException
getType
in interface KPropertyFactory
KException
public boolean isMultiple(Repository.UnitOfWork transaction, Property property) throws KException
isMultiple
in interface KPropertyFactory
KException
public PropertyDescriptor getPropertyDescriptor(Repository.UnitOfWork transaction, Property property) throws KException
getPropertyDescriptor
in interface KPropertyFactory
KException
public Object getValue(Repository.UnitOfWork transaction, Property property) throws KException
getValue
in interface KPropertyFactory
KException
public Object[] getValues(Repository.UnitOfWork transaction, Property property) throws Exception
getValues
in interface KPropertyFactory
Exception
public Boolean getBoolean(Repository.UnitOfWork transaction, Property property) throws KException
getBoolean
in interface KPropertyFactory
KException
public Boolean[] getBooleanValues(Repository.UnitOfWork transaction, Property property) throws KException
getBooleanValues
in interface KPropertyFactory
KException
public String getString(Repository.UnitOfWork transaction, Property property) throws KException
getString
in interface KPropertyFactory
KException
public String[] getStringValues(Repository.UnitOfWork transaction, Property property) throws KException
getStringValues
in interface KPropertyFactory
KException
public String getReference(Repository.UnitOfWork transaction, Property property) throws KException
getReference
in interface KPropertyFactory
KException
public String[] getReferenceValues(Repository.UnitOfWork transaction, Property property) throws KException
getReferenceValues
in interface KPropertyFactory
KException
public Long getLong(Repository.UnitOfWork transaction, Property property) throws KException
getLong
in interface KPropertyFactory
KException
public Long[] getLongValues(Repository.UnitOfWork transaction, Property property) throws KException
getLongValues
in interface KPropertyFactory
KException
public Double getDouble(Repository.UnitOfWork transaction, Property property) throws KException
getDouble
in interface KPropertyFactory
KException
public Double[] getDoubleValues(Repository.UnitOfWork transaction, Property property) throws KException
getDoubleValues
in interface KPropertyFactory
KException
public Integer getInteger(Repository.UnitOfWork transaction, Property property) throws KException
getInteger
in interface KPropertyFactory
KException
public Integer[] getIntegerValues(Repository.UnitOfWork transaction, Property property) throws KException
getIntegerValues
in interface KPropertyFactory
KException
public Calendar getDate(Repository.UnitOfWork transaction, Property property) throws KException
getDate
in interface KPropertyFactory
KException
public Calendar[] getDateValues(Repository.UnitOfWork transaction, Property property) throws KException
getDateValues
in interface KPropertyFactory
KException
public InputStream getBinary(Repository.UnitOfWork transaction, Property property) throws KException
getBinary
in interface KPropertyFactory
KException
public InputStream[] getBinaryValues(Repository.UnitOfWork transaction, Property property) throws KException
getBinaryValues
in interface KPropertyFactory
KException
public void setValue(Repository.UnitOfWork transaction, Property property, Object... values) throws KException
setValue
in interface KPropertyFactory
KException
public void setProperty(Repository.UnitOfWork transaction, KomodoObject kObject, String name, Object[] values) throws KException
KException
Copyright © 2013–2019. All rights reserved.