result.setId(id); result.setLocalName(id); result.setDisplayName(displayName); result.setDescription(description); result.setPropertyType(datatype); result.setCardinality(cardinality); result.setUpdatability(updateability); result.setIsInherited(inherited); result.setIsRequired(required); result.setIsQueryable(true); result.setQueryName(id); result.setIsOrderable(true);
/** * Helper method to make a property definition queryable and orderable.<p> * * @param propDef the property definition * * @return the modified property definition */ private static AbstractPropertyDefinition<?> queryableAndOrderable(AbstractPropertyDefinition<?> propDef) { propDef.setIsQueryable(Boolean.TRUE); propDef.setIsOrderable(Boolean.TRUE); return propDef; }
((AbstractPropertyDefinition<?>) propDef).setIsInherited(true); newType.addPropertyDefinition(propDef);
((AbstractPropertyDefinition<?>)propDef).setIsInherited(Boolean.TRUE); newType.addPropertyDefinition(propDef);
result.setId(id); result.setLocalName(id); result.setDisplayName(displayName); result.setDescription(description); result.setPropertyType(datatype); result.setCardinality(cardinality); result.setUpdatability(updateability); result.setIsInherited(Boolean.valueOf(inherited)); result.setIsRequired(Boolean.valueOf(required)); result.setIsQueryable(Boolean.FALSE); result.setIsOrderable(Boolean.FALSE); result.setQueryName(id); return result;
result.setPropertyType(propertyType); result.setId("tck:" + propertyType.value()); result.setLocalName("tck:local_" + propertyType.value()); result.setLocalNamespace("tck:testlocalnamespace"); result.setDisplayName("TCK " + propertyType.value() + " propertry"); result.setQueryName("tck:" + propertyType.value()); result.setDescription("TCK " + propertyType.value() + " propertry"); result.setCardinality(Cardinality.SINGLE); result.setUpdatability(Updatability.READWRITE); result.setIsInherited(false); result.setIsQueryable(false); result.setIsOrderable(false); result.setIsRequired(false); result.setIsOpenChoice(true);
values.add(getCMISValue(value, propertyType)); result.setDefaultValue(values); } else { result.setDefaultValue((List) Collections.singletonList(getCMISValue(defaultValue, propertyType))); result.setId(id); result.setPropertyType(propertyType); result.setCardinality(cardinality); result.setLocalName(getString(json, JSON_PROPERTY_TYPE_LOCALNAME)); result.setLocalNamespace(getString(json, JSON_PROPERTY_TYPE_LOCALNAMESPACE)); result.setQueryName(getString(json, JSON_PROPERTY_TYPE_QUERYNAME)); result.setDescription(getString(json, JSON_PROPERTY_TYPE_DESCRIPTION)); result.setDisplayName(getString(json, JSON_PROPERTY_TYPE_DISPLAYNAME)); result.setIsInherited(getBoolean(json, JSON_PROPERTY_TYPE_INHERITED)); result.setIsOpenChoice(getBoolean(json, JSON_PROPERTY_TYPE_OPENCHOICE)); result.setIsOrderable(getBoolean(json, JSON_PROPERTY_TYPE_ORDERABLE)); result.setIsQueryable(getBoolean(json, JSON_PROPERTY_TYPE_QUERYABLE)); result.setIsRequired(getBoolean(json, JSON_PROPERTY_TYPE_REQUIRED)); result.setUpdatability(getEnum(json, JSON_PROPERTY_TYPE_UPDATABILITY, Updatability.class));
values.add(getCMISValue(value, propertyType)); result.setDefaultValue(values); } else { result.setDefaultValue((List) Collections.singletonList(getCMISValue(defaultValue, propertyType))); result.setId(id); result.setPropertyType(propertyType); result.setCardinality(cardinality); result.setLocalName(getString(json, JSON_PROPERTY_TYPE_LOCALNAME)); result.setLocalNamespace(getString(json, JSON_PROPERTY_TYPE_LOCALNAMESPACE)); result.setQueryName(getString(json, JSON_PROPERTY_TYPE_QUERYNAME)); result.setDescription(getString(json, JSON_PROPERTY_TYPE_DESCRIPTION)); result.setDisplayName(getString(json, JSON_PROPERTY_TYPE_DISPLAYNAME)); result.setIsInherited(getBoolean(json, JSON_PROPERTY_TYPE_INHERITED)); result.setIsOpenChoice(getBoolean(json, JSON_PROPERTY_TYPE_OPENCHOICE)); result.setIsOrderable(getBoolean(json, JSON_PROPERTY_TYPE_ORDERABLE)); result.setIsQueryable(getBoolean(json, JSON_PROPERTY_TYPE_QUERYABLE)); result.setIsRequired(getBoolean(json, JSON_PROPERTY_TYPE_REQUIRED)); result.setUpdatability(getEnum(json, JSON_PROPERTY_TYPE_UPDATABILITY, Updatability.class));
result.setCardinality(convert(Cardinality.class, propertyDefinition.getCardinality())); result.setDescription(propertyDefinition.getDescription()); result.setDisplayName(propertyDefinition.getDisplayName()); result.setId(propertyDefinition.getId()); result.setIsInherited(propertyDefinition.isInherited()); result.setIsOpenChoice(propertyDefinition.isOpenChoice()); result.setIsQueryable(propertyDefinition.isQueryable()); result.setIsOrderable(propertyDefinition.isOrderable()); result.setIsRequired(propertyDefinition.isRequired()); result.setLocalName(propertyDefinition.getLocalName()); result.setLocalNamespace(propertyDefinition.getLocalNamespace()); result.setPropertyType(convert(PropertyType.class, propertyDefinition.getPropertyType())); result.setQueryName(propertyDefinition.getQueryName()); result.setUpdatability(convert(Updatability.class, propertyDefinition.getUpdatability()));
if (isCmisNamespace(name)) { if (isTag(name, TAG_PROPERTY_TYPE_ID)) { target.setId(readText(parser)); return true; target.setLocalName(readText(parser)); return true; target.setLocalNamespace(readText(parser)); return true; target.setDisplayName(readText(parser)); return true; target.setQueryName(readText(parser)); return true; target.setDescription(readText(parser)); return true; target.setPropertyType(propType); return true; target.setCardinality(cardinality); return true; target.setUpdatability(updatability); return true;
if (isCmisNamespace(name)) { if (isTag(name, TAG_PROPERTY_TYPE_ID)) { target.setId(readText(parser)); return true; target.setLocalName(readText(parser)); return true; target.setLocalNamespace(readText(parser)); return true; target.setDisplayName(readText(parser)); return true; target.setQueryName(readText(parser)); return true; target.setDescription(readText(parser)); return true; target.setPropertyType(propType); return true; target.setCardinality(cardinality); return true; target.setUpdatability(updatability); return true;