/** * Convert a <code>PropertyBoolean</code> to an array of GREG <code>Values</code>. */ public static List<String> toValue(PropertyBoolean propertyData) { List<Boolean> values = propertyData.getValues(); List<String> result = null; if (values == null) { return result; } for (Boolean v : values) { result.add(v.toString()); } return result; }
protected Boolean getBooleanProperty(ObjectData object, String name) { PropertyData<?> property = object.getProperties().getProperties().get(name); if (property instanceof PropertyBoolean) { return ((PropertyBoolean) property).getFirstValue(); } return null; }
List<Boolean> values = ((PropertyBoolean) source).getValues(); if (values != null) { for (Boolean value : values) {
protected Boolean getBooleanProperty(ObjectData object, String name) { PropertyData<?> property = object.getProperties().getProperties().get(name); if (property instanceof PropertyBoolean) { return ((PropertyBoolean) property).getFirstValue(); } return null; }
} else if (property instanceof PropertyBoolean) { result = new CmisPropertyBoolean(); ((CmisPropertyBoolean) result).getValue().addAll(((PropertyBoolean) property).getValues()); } else if (property instanceof PropertyDateTime) { result = new CmisPropertyDateTime();
List<Boolean> values = ((PropertyBoolean) source).getValues(); if (values != null) { for (Boolean value : values) {
if (isTag(name, TAG_PROPERTY_TYPE_DEAULT_VALUE)) { PropertyBoolean prop = PROPERTY_BOOLEAN_PARSER.walk(parser); ((PropertyBooleanDefinitionImpl) target).setDefaultValue(prop.getValues()); return true;
if (isTag(name, TAG_PROPERTY_TYPE_DEAULT_VALUE)) { PropertyBoolean prop = PROPERTY_BOOLEAN_PARSER.walk(parser); ((PropertyBooleanDefinitionImpl) target).setDefaultValue(prop.getValues()); return true;