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

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


                    : new PropertyBooleanImpl(jcrProperty.getName(), jcrProperty.getBoolean());
                break;

            case PropertyType.URI:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyUriImpl(jcrProperty.getName(), toStrings(jcrProperty.getValues()))
                    : new PropertyUriImpl(jcrProperty.getName(), jcrProperty.getString());
                break;

            default:
                throw new CmisInvalidArgumentException("Invalid property type: " + jcrProperty.getType());
        }
View Full Code Here


                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());
            }
        }
        return null;
View Full Code Here

                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:
                throw new RuntimeException("Unknown datatype! Spec change?");
            }
View Full Code Here

                    : new PropertyBooleanImpl(jcrProperty.getName(), jcrProperty.getBoolean());
                break;

            case PropertyType.URI:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyUriImpl(jcrProperty.getName(), toStrings(jcrProperty.getValues()))
                    : new PropertyUriImpl(jcrProperty.getName(), jcrProperty.getString());
                break;

            default:
                throw new CmisInvalidArgumentException("Invalid property type: " + jcrProperty.getType());
        }
View Full Code Here

            result = new PropertyDateTimeImpl(property.getPropertyDefinitionId(),
                    convertXMLCalendar(((CmisPropertyDateTime) property).getValue()));
        } else if (property instanceof CmisPropertyHtml) {
            result = new PropertyHtmlImpl(property.getPropertyDefinitionId(), ((CmisPropertyHtml) property).getValue());
        } else if (property instanceof CmisPropertyUri) {
            result = new PropertyUriImpl(property.getPropertyDefinitionId(), ((CmisPropertyUri) property).getValue());
        } else {
            return null;
        }

        ((AbstractPropertyData<?>) result).setLocalName(property.getLocalName());
View Full Code Here

            result = new PropertyDateTimeImpl(property.getPropertyDefinitionId(),
                    convertXMLCalendar(((CmisPropertyDateTime) property).getValue()));
        } else if (property instanceof CmisPropertyHtml) {
            result = new PropertyHtmlImpl(property.getPropertyDefinitionId(), ((CmisPropertyHtml) property).getValue());
        } else if (property instanceof CmisPropertyUri) {
            result = new PropertyUriImpl(property.getPropertyDefinitionId(), ((CmisPropertyUri) property).getValue());
        } else {
            return null;
        }

        ((AbstractPropertyData<?>) result).setLocalName(property.getLocalName());
View Full Code Here

                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:
                throw new RuntimeException("Unknown datatype! Spec change?");
            }
View Full Code Here

            break;
        case HTML:
            propertyData = new PropertyHtmlImpl(propDef.getId(), strValues);
            break;
        case URI:
            propertyData = new PropertyUriImpl(propDef.getId(), strValues);
            break;
        }

        return propertyData;
    }
View Full Code Here

            result = new PropertyDateTimeImpl(property.getPropertyDefinitionId(),
                    convertXMLCalendar(((CmisPropertyDateTime) property).getValue()));
        } else if (property instanceof CmisPropertyHtml) {
            result = new PropertyHtmlImpl(property.getPropertyDefinitionId(), ((CmisPropertyHtml) property).getValue());
        } else if (property instanceof CmisPropertyUri) {
            result = new PropertyUriImpl(property.getPropertyDefinitionId(), ((CmisPropertyUri) property).getValue());
        } else {
            return null;
        }

        ((AbstractPropertyData<?>) result).setLocalName(property.getLocalName());
View Full Code Here

                case HTML:
                    property = new PropertyHtmlImpl();
                    ((PropertyHtmlImpl) property).setValues(copyStringValues(values));
                    break;
                case URI:
                    property = new PropertyUriImpl();
                    ((PropertyUriImpl) property).setValues(copyStringValues(values));
                    break;
                default:
                    throw new CmisRuntimeException("Unknown property data type!");
                }
View Full Code Here

TOP

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

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.