|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.opencmis.util.OwPropertyDefinitionHelper
public class OwPropertyDefinitionHelper
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 Summary | |
---|---|
OwPropertyDefinitionHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwPropertyDefinitionHelper()
Method Detail |
---|
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
- PropertyDefinition
public static boolean isInheritanceDifferent(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> a, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> b)
a
- PropertyDefinitionb
- PropertyDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |