Package org.apache.chemistry.opencmis.commons.impl.dataobjects

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl


        } else if (prop instanceof PropertyIntegerImpl) {
            PropertyIntegerImpl clone = new PropertyIntegerImpl();
            clone.setValues(((PropertyIntegerImpl)prop).getValues());
            ad = clone;
        } else if (prop instanceof PropertyStringImpl) {
            PropertyStringImpl clone = new PropertyStringImpl();
            clone.setValues(((PropertyStringImpl)prop).getValues());
            ad = clone;
        } else if (prop instanceof PropertyUriImpl) {
            PropertyUriImpl clone = new PropertyUriImpl();
            clone.setValues(((PropertyUriImpl)prop).getValues());
            ad = clone;
        } else {
            throw new RuntimeException("Unknown property type: " + prop.getClass());
        }
       
View Full Code Here


        }

        PropertyData<?> propertyData = null;
        switch (propDef.getPropertyType()) {
        case STRING:
            propertyData = new PropertyStringImpl(propDef.getId(), strValues);
            break;
        case ID:
            propertyData = new PropertyIdImpl(propDef.getId(), strValues);
            break;
        case BOOLEAN:
View Full Code Here

    protected final void addPropertyString(PropertiesImpl props, String typeId, Set<String> filter, String id, String value) {
        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        PropertyStringImpl prop = new PropertyStringImpl(id, value);
        prop.setQueryName(id);
        props.addProperty(prop);
    }
View Full Code Here

            case PropertyType.PATH:
            case PropertyType.REFERENCE:
            case PropertyType.WEAKREFERENCE:
            case PropertyType.STRING:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyStringImpl(jcrProperty.getName(), toStrings(jcrProperty.getValues()))
                    : new PropertyStringImpl(jcrProperty.getName(), jcrProperty.getString());
                break;

            case PropertyType.LONG:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyIntegerImpl(jcrProperty.getName(), toInts(jcrProperty.getValues()))
View Full Code Here

            }
        }

        // overwrite cmis:name with Atom title
        if ((object != null) && (object.getProperties() != null) && (atomTitle != null) && (atomTitle.length() > 0)) {
            PropertyString nameProperty = new PropertyStringImpl(PropertyIds.NAME, atomTitle);
            ((PropertiesImpl) object.getProperties()).replaceProperty(nameProperty);
        }
    }
View Full Code Here

                case ID:
                    return new PropertyIdImpl(propDef.getId(), (List<String>) defaultValue);
                case INTEGER:
                    return new PropertyIntegerImpl(propDef.getId(), (List<BigInteger>) defaultValue);
                case STRING:
                    return new PropertyStringImpl(propDef.getId(), (List<String>) defaultValue);
                case URI:
                    return new PropertyUriImpl(propDef.getId(), (List<String>) defaultValue);
                default:
                    throw new CmisRuntimeException("Unknown datatype: " + propDef.getPropertyType());
            }
View Full Code Here

    private void addPropertyString(PropertiesImpl props, String typeId, Set<String> filter, String id, String value) {
        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        props.addProperty(new PropertyStringImpl(id, value));
    }
View Full Code Here

                break;
            case INTEGER:
                props.addProperty(new PropertyIntegerImpl(propDef.getId(), (List<BigInteger>) defaultValue));
                break;
            case STRING:
                props.addProperty(new PropertyStringImpl(propDef.getId(), (List<String>) defaultValue));
                break;
            case URI:
                props.addProperty(new PropertyUriImpl(propDef.getId(), (List<String>) defaultValue));
                break;
            default:
View Full Code Here

            case PropertyType.PATH:
            case PropertyType.REFERENCE:
            case PropertyType.WEAKREFERENCE:
            case PropertyType.STRING:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyStringImpl(jcrProperty.getName(), toStrings(jcrProperty.getValues()))
                    : new PropertyStringImpl(jcrProperty.getName(), jcrProperty.getString());
                break;

            case PropertyType.LONG:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyIntegerImpl(jcrProperty.getName(), toInts(jcrProperty.getValues()))
View Full Code Here

    protected final void addPropertyString(PropertiesImpl props, String typeId, Set<String> filter, String id, String value) {
        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        PropertyStringImpl prop = new PropertyStringImpl(id, value);
        prop.setQueryName(id);
        props.addProperty(prop);
    }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.