@Deprecated public class PropertySelectionCollector extends Object implements PropertySelection
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
onlyDeclaredProperties
Whether to collect only declared properties for
a type, otherwise indicates to collect all properties
for a given type and all its base types
|
protected boolean |
onlySingularProperties
Whether to collect only singular reference
properties and follow paths composed of only
singular properties.
|
protected Type |
rootType |
| Constructor and Description |
|---|
PropertySelectionCollector(Select select,
Type rootType)
Deprecated.
|
PropertySelectionCollector(Select select,
Type rootType,
boolean onlySingularProperties)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInheritedProperty(Type type,
Integer level,
Property property,
Map<Type,Map<Integer,Set<Property>>> map) |
protected void |
addInheritedProperty(Type type,
Property property,
Map<Type,Set<Property>> map) |
protected void |
addInheritedProperty(Type type,
Property edge,
Property property,
Map<Type,Map<Property,Set<Property>>> map) |
protected void |
addPredicate(Property property,
Integer level,
Where predicate,
Map<Property,Map<Integer,Where>> map) |
protected void |
addPredicate(Property property,
Property edge,
Where predicate,
Map<Property,Map<Property,Where>> map) |
protected void |
addProperty(Type type,
Integer level,
Property property,
Map<Type,Map<Integer,Set<Property>>> map) |
protected void |
addProperty(Type type,
Property property,
Map<Type,Set<Property>> map) |
protected void |
addProperty(Type type,
Property edge,
Property property,
Map<Type,Map<Property,Set<Property>>> map) |
List<Type> |
addProperty(Type rootType,
String path)
Deprecated.
Adds the given given property to the
selection for the given graph root type and
returns any types collected during traversal
of the property path.
|
void |
collect(Where predicate)
Deprecated.
Traverses the given predicate adding its properties
and property paths to the selection.
|
String |
dumpInheritedProperties()
Deprecated.
|
String |
dumpProperties()
Deprecated.
|
protected Property[] |
findProperties(Type type,
AbstractProperty abstractProperty)
A convenience method returning an array of names for
the given property whether a wildcard
property or not.
|
protected String[] |
findPropertyNames(Type type,
AbstractProperty abstractProperty)
A convenience method returning an array of names for
the given property whether a wildcard
property or not.
|
List<String> |
getInheritedProperties(Type type)
Deprecated.
Returns a list of data and reference
property names collected specifically for
the given type or collected for any base type
of the given type.
|
List<Type> |
getInheritedTypes()
Deprecated.
Returns all selected types and as well as types
specialize or inherit from the selected types.
|
Where |
getPredicate(Property property)
Deprecated.
Returns the predicate for the given property or null
if the given property is not mapped.
|
Map<Property,Where> |
getPredicateMap()
Deprecated.
|
List<String> |
getProperties(Type type)
Deprecated.
Returns a list of data and reference
property names collected for the given type.
|
Map<Type,List<String>> |
getResult()
Deprecated.
|
List<String> |
getSingularProperties(Type type)
Deprecated.
Returns a list of only singular data and reference
property names collected for the given type.
|
Map<Type,List<String>> |
getSingularPropertyMap()
Deprecated.
|
List<Type> |
getTypes()
Deprecated.
Returns all selected types.
|
boolean |
hasInheritedProperty(Type type,
Property property)
Deprecated.
Returns true if the given type is found in the inherited type selection and if the
given property is found in the property selection for the
given type.
|
boolean |
hasInheritedType(Type type)
Deprecated.
Returns true if the given type is found in the
inherited type selection.
|
boolean |
hasProperty(Type type,
Property property)
Deprecated.
Returns true if the given type is found in the type selection and if the
given property is found in the property selection for the
given type.
|
boolean |
hasType(Type type)
Deprecated.
Returns true if the given type is found in the
type selection.
|
boolean |
isOnlyDeclaredProperties()
Returns whether to collect only declared properties for
a type.
|
boolean |
isOnlySingularProperties()
Returns whether to collect only singular properties and
follow paths composed of only singular properties.
|
protected boolean |
isSingularPath(Path path,
Type currType,
AbstractPathElement currPathElement,
int curPathElementIndex,
AbstractProperty abstractProperty)
Recursively traverses the given path checking every
path element and determines if the entire path is composed of
singular properties.
|
protected boolean |
isSingularPath(Path path,
Type rootType,
AbstractProperty abstractProperty)
Recursively traverses the given path checking every
path element and determines if the entire path is composed of
singular properties.
|
protected void |
mapFunctions(Property prop,
Integer level,
List<Function> functions,
Map<Property,Map<Integer,List<Function>>> map) |
protected void |
mapFunctions(Property prop,
List<Function> functions,
Map<Property,List<Function>> map) |
protected void |
mapInheritedProperties(Type type,
Integer level,
Property[] props,
Map<Type,Map<Integer,Set<Property>>> map) |
protected void |
mapInheritedProperties(Type type,
Property[] props,
Map<Type,Set<Property>> map) |
protected void |
mapInheritedProperties(Type type,
Property edge,
Property[] props,
Map<Type,Map<Property,Set<Property>>> map) |
protected void |
mapInheritedProperty(Type type,
Property property,
Map<Type,List<String>> map) |
protected void |
mapInheritedPropertyNames(Type type,
String[] names,
Map<Type,List<String>> map) |
protected void |
mapProperties(Type type,
Integer level,
Property[] props,
Map<Type,Map<Integer,Set<Property>>> map) |
protected void |
mapProperties(Type type,
Property[] props,
Map<Type,Set<Property>> map) |
protected void |
mapProperties(Type type,
Property edge,
Property[] props,
Map<Type,Map<Property,Set<Property>>> map) |
protected void |
mapProperty(Type type,
Property property,
Map<Type,List<String>> map) |
protected void |
mapPropertyNames(Type type,
String[] names,
Map<Type,List<String>> map) |
void |
setOnlyDeclaredProperties(boolean onlyDeclaredProperties)
Sets whether to collect only declared properties for
a type.
|
void |
setOnlySingularProperties(boolean onlySingularProperties)
Sets whether to collect only singular properties and
follow paths composed of only singular properties.
|
protected Type rootType
protected boolean onlySingularProperties
protected boolean onlyDeclaredProperties
public PropertySelectionCollector(Select select, Type rootType)
public void collect(Where predicate)
PropertySelectioncollect in interface PropertySelectionpredicate - the predicate@Deprecated public Map<Property,Where> getPredicateMap()
public Where getPredicate(Property property)
PropertySelectiongetPredicate in interface PropertySelectionproperty - the property@Deprecated public Map<Type,List<String>> getSingularPropertyMap()
public List<String> getSingularProperties(Type type)
PropertySelectiongetSingularProperties in interface PropertySelectiontype - the type@Deprecated public Map<Type,List<String>> getResult()
Type definitionType to logical property name mappublic List<String> getProperties(Type type)
PropertySelectiongetProperties in interface PropertySelectiontype - the typepublic List<String> getInheritedProperties(Type type)
PropertySelectiongetInheritedProperties in interface PropertySelectiontype - the typepublic List<Type> getTypes()
PropertySelectiongetTypes in interface PropertySelectionpublic boolean hasType(Type type)
PropertySelectionhasType in interface PropertySelectiontype - the typepublic List<Type> getInheritedTypes()
PropertySelectiongetInheritedTypes in interface PropertySelectionpublic boolean hasInheritedType(Type type)
PropertySelectionhasInheritedType in interface PropertySelectiontype - the typepublic boolean hasProperty(Type type, Property property)
PropertySelectionhasProperty in interface PropertySelectiontype - the typeproperty - the propertypublic List<Type> addProperty(Type rootType, String path)
PropertySelectionaddProperty in interface PropertySelectionrootType - the graph root typepath - the SDO XPath specifying a path from the given root type
to a target or endpoint propertypublic boolean hasInheritedProperty(Type type, Property property)
PropertySelectionhasInheritedProperty in interface PropertySelectiontype - the typeproperty - the propertypublic String dumpProperties()
public String dumpInheritedProperties()
public boolean isOnlySingularProperties()
public void setOnlySingularProperties(boolean onlySingularProperties)
public boolean isOnlyDeclaredProperties()
public void setOnlyDeclaredProperties(boolean onlyDeclaredProperties)
protected void addProperty(Type type, Integer level, Property property, Map<Type,Map<Integer,Set<Property>>> map)
protected void addPredicate(Property property, Integer level, Where predicate, Map<Property,Map<Integer,Where>> map)
protected void addProperty(Type type, Property edge, Property property, Map<Type,Map<Property,Set<Property>>> map)
protected void addPredicate(Property property, Property edge, Where predicate, Map<Property,Map<Property,Where>> map)
protected void mapInheritedProperty(Type type, Property property, Map<Type,List<String>> map)
protected void addInheritedProperty(Type type, Property property, Map<Type,Set<Property>> map)
protected void addInheritedProperty(Type type, Integer level, Property property, Map<Type,Map<Integer,Set<Property>>> map)
protected void addInheritedProperty(Type type, Property edge, Property property, Map<Type,Map<Property,Set<Property>>> map)
protected void mapPropertyNames(Type type, String[] names, Map<Type,List<String>> map)
protected void mapProperties(Type type, Property[] props, Map<Type,Set<Property>> map)
protected void mapFunctions(Property prop, List<Function> functions, Map<Property,List<Function>> map)
protected void mapProperties(Type type, Integer level, Property[] props, Map<Type,Map<Integer,Set<Property>>> map)
protected void mapFunctions(Property prop, Integer level, List<Function> functions, Map<Property,Map<Integer,List<Function>>> map)
protected void mapProperties(Type type, Property edge, Property[] props, Map<Type,Map<Property,Set<Property>>> map)
protected void mapInheritedPropertyNames(Type type, String[] names, Map<Type,List<String>> map)
protected void mapInheritedProperties(Type type, Property[] props, Map<Type,Set<Property>> map)
protected void mapInheritedProperties(Type type, Integer level, Property[] props, Map<Type,Map<Integer,Set<Property>>> map)
protected void mapInheritedProperties(Type type, Property edge, Property[] props, Map<Type,Map<Property,Set<Property>>> map)
protected String[] findPropertyNames(Type type, AbstractProperty abstractProperty)
type - the typeabstractProperty - the propertyprotected Property[] findProperties(Type type, AbstractProperty abstractProperty)
type - the typeabstractProperty - the propertyprotected boolean isSingularPath(Path path, Type rootType, AbstractProperty abstractProperty)
path - the pathrootType - the root typeabstractProperty - protected boolean isSingularPath(Path path, Type currType, AbstractPathElement currPathElement, int curPathElementIndex, AbstractProperty abstractProperty)
path - the pathcurrType - the current typecurrPathElement - the current path elementcurPathElementIndex - the current path element indexabstractProperty - the propertyCopyright © 2017. All rights reserved.