public class OwPropertyDefinitionHelper extends Object
Helper to compare two PropertyDefinition instances.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwPropertyDefinitionHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDifferent(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> a,
org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> b)
Compare base attributes of the property definition, if it is not returning on main checks
the
isInheritanceDifferent(PropertyDefinition, PropertyDefinition) is invoked to
compare deeper. |
static boolean |
isInheritanceDifferent(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> a,
org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> b)
Assuming that the property definitions are linked somehow, or represent
an inheritance dependency, this method will check the other attributes
and tell if there are differences.
|
public static boolean isDifferent(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> a, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> b)
isInheritanceDifferent(PropertyDefinition, PropertyDefinition)
is invoked to
compare deeper. Compared are the attributes:
a.Id == b.Id;
a.type == b.type;
a.cardinality == b.cardinality;
a.queryName == b.queryName;
a
- PropertyDefinitionb
- PropertyDefinitionpublic static boolean isInheritanceDifferent(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> a, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> b)
a
- PropertyDefinitionb
- PropertyDefinitionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.