public class DirectionalAttributes extends AbstractRecordDefinitionProperty
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME |
| Constructor and Description |
|---|
DirectionalAttributes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectionalAttributeValues(String fieldName,
Map<? extends Object,? extends Object> values) |
void |
addEndAndSideAttributePairs(String startLeftFieldName,
String startRightFieldName,
String endLeftFieldName,
String endRightFieldName) |
void |
addEndAttributePair(String startFieldName,
String endFieldName) |
void |
addSideAttributePair(String leftFieldName,
String rightFieldName) |
protected void |
addValue(Map<Object,Object> map,
Object key,
Object value) |
boolean |
canMerge(Point point,
Record object1,
Record object2,
Collection<String> equalExcludeAttributes) |
boolean |
canMerge(String fieldName,
Point point,
Record object1,
Record object2,
Collection<String> equalExcludeAttributes,
boolean[] forwardsIndicators) |
protected boolean |
canMergeEndAttribute(String endFieldName,
Record object1,
boolean line1Forwards,
Record object2,
boolean line2Forwards,
Collection<String> equalExcludeAttributes) |
static boolean |
canMergeObjects(Point point,
Record object1,
Record object2) |
static boolean |
canMergeObjects(Point point,
Record object1,
Record object2,
Set<String> equalExcludeAttributes) |
protected boolean |
canMergeStartAttribute(String startFieldName,
Record object1,
boolean line1Forwards,
Record object2,
boolean line2Forwards,
Collection<String> equalExcludeAttributes) |
void |
clearEndAttributes(Record object) |
void |
clearStartAttributes(Record object) |
static void |
edgeSplitAttributes(LineString line,
Point point,
List<Edge<Record>> edges) |
boolean |
equals(Record object1,
Record object2,
Collection<String> equalExcludeAttributes) |
protected boolean |
equals(Record object1,
String name1,
Record object2,
String name2,
Collection<String> equalExcludeAttributes) |
protected boolean |
equals(String fieldName,
Record object1,
Record object2,
Collection<String> equalExcludeAttributes) |
static boolean |
equalsObjects(Record object1,
Record object2) |
static boolean |
equalsObjects(Record object1,
Record object2,
Collection<String> equalExcludeAttributes) |
Set<String> |
getCantMergeAttributes(Point point,
Record object1,
Record object2,
Collection<String> equalExcludeAttributes) |
static Set<String> |
getCantMergeAttributesObjects(Point point,
Record object1,
Record object2,
Set<String> equalExcludeAttributes) |
protected Object |
getDirectionalAttributeValue(Map<String,? extends Object> object,
String fieldName) |
Map<String,Map<Object,Object>> |
getDirectionalAttributeValues() |
List<List<String>> |
getEndAndSideFieldNamePairs() |
Map<String,String> |
getEndFieldNamePairs() |
Set<String> |
getEndFieldNames() |
protected boolean[] |
getForwardsIndicators(Point point,
Record object1,
Record object2) |
Map<String,Object> |
getMergedMap(Point point,
Record object1,
Record object2) |
Record |
getMergedObject(Point point,
Record object1,
Record object2)
Get a new object that is the result of merging the two objects.
|
Record |
getMergedObject(Record object1,
Record object2)
Get a new object that is the result of merging the two objects.
|
Record |
getMergedObjectReverseLongest(Point point,
Record object1,
Record object2) |
Record |
getMergedObjectReverseLongest(Record object1,
Record object2)
Get a new object that is the result of merging the two objects.
|
static DirectionalAttributes |
getProperty(Record object) |
static DirectionalAttributes |
getProperty(RecordDefinition recordDefinition) |
String |
getPropertyName() |
Record |
getReverse(Record object) |
Map<String,Object> |
getReverseAttributes(Map<String,Object> object) |
Map<String,Object> |
getReverseAttributesAndGeometry(Map<String,Object> object) |
String |
getReverseFieldName(String fieldName) |
Map<String,Object> |
getReverseGeometry(Map<String,Object> object) |
protected Geometry |
getReverseLine(Map<String,Object> object) |
static Record |
getReverseObject(Record object) |
protected String |
getSideAttributePair(String fieldName) |
Map<String,String> |
getSideFieldNamePairs() |
Set<String> |
getStartFieldNames() |
boolean |
hasDirectionalAttributes() |
boolean |
hasDirectionalAttributeValues(String fieldName) |
static boolean |
hasProperty(Record object) |
boolean |
isEndAttribute(String fieldName) |
protected boolean |
isNull(Record object1,
String name1,
Record object2,
String name2,
Collection<String> equalExcludeAttributes) |
boolean |
isSideAttribute(String fieldName) |
boolean |
isStartAttribute(String fieldName) |
static Record |
merge(Point point,
Record object1,
Record object2) |
static Record |
merge(Record object1,
Record object2) |
static Record |
mergeLongest(Point point,
Record object1,
Record object2) |
static Record |
mergeLongest(Record object1,
Record object2) |
static void |
reverse(Record object) |
void |
reverseAttributes(Map<String,Object> object) |
void |
reverseAttributesAndGeometry(Map<String,Object> object) |
void |
reverseGeometry(Map<String,Object> object) |
void |
setDirectionalAttributeValues(Map<String,Map<Object,Object>> directionalAttributeValues) |
void |
setEdgeSplitAttributes(LineString line,
Point point,
List<Edge<Record>> edges) |
void |
setEndAndSideFieldNamePairs(List<List<String>> endAndSideAttributePairs) |
void |
setEndAttributes(Record source,
Map<String,Object> newObject) |
void |
setEndFieldNamePairs(Map<String,String> fieldNamePairs) |
void |
setSideFieldNamePairs(Map<String,String> fieldNamePairs) |
void |
setSplitAttributes(LineString line,
Point point,
Record object) |
void |
setStartAttributes(Record source,
Map<String,Object> newObject) |
String |
toString() |
clone, getRecordDefinition, getTypePath, setRecordDefinitionpublic static final String PROPERTY_NAME
public static boolean canMergeObjects(Point point, Record object1, Record object2, Set<String> equalExcludeAttributes)
public static void edgeSplitAttributes(LineString line, Point point, List<Edge<Record>> edges)
public static boolean equalsObjects(Record object1, Record object2, Collection<String> equalExcludeAttributes)
public static Set<String> getCantMergeAttributesObjects(Point point, Record object1, Record object2, Set<String> equalExcludeAttributes)
public static DirectionalAttributes getProperty(Record object)
public static DirectionalAttributes getProperty(RecordDefinition recordDefinition)
public static boolean hasProperty(Record object)
public static void reverse(Record object)
public void addDirectionalAttributeValues(String fieldName, Map<? extends Object,? extends Object> values)
public void addEndAndSideAttributePairs(String startLeftFieldName, String startRightFieldName, String endLeftFieldName, String endRightFieldName)
public boolean canMerge(Point point, Record object1, Record object2, Collection<String> equalExcludeAttributes)
public boolean canMerge(String fieldName, Point point, Record object1, Record object2, Collection<String> equalExcludeAttributes, boolean[] forwardsIndicators)
protected boolean canMergeEndAttribute(String endFieldName, Record object1, boolean line1Forwards, Record object2, boolean line2Forwards, Collection<String> equalExcludeAttributes)
protected boolean canMergeStartAttribute(String startFieldName, Record object1, boolean line1Forwards, Record object2, boolean line2Forwards, Collection<String> equalExcludeAttributes)
public void clearEndAttributes(Record object)
public void clearStartAttributes(Record object)
public boolean equals(Record object1, Record object2, Collection<String> equalExcludeAttributes)
protected boolean equals(Record object1, String name1, Record object2, String name2, Collection<String> equalExcludeAttributes)
protected boolean equals(String fieldName, Record object1, Record object2, Collection<String> equalExcludeAttributes)
public Set<String> getCantMergeAttributes(Point point, Record object1, Record object2, Collection<String> equalExcludeAttributes)
protected Object getDirectionalAttributeValue(Map<String,? extends Object> object, String fieldName)
protected boolean[] getForwardsIndicators(Point point, Record object1, Record object2)
public Record getMergedObject(Point point, Record object1, Record object2)
object1 - object2 - public Record getMergedObject(Record object1, Record object2)
object1 - object2 - public Record getMergedObjectReverseLongest(Point point, Record object1, Record object2)
public Record getMergedObjectReverseLongest(Record object1, Record object2)
object1 - object2 - public String getPropertyName()
public Map<String,Object> getReverseAttributesAndGeometry(Map<String,Object> object)
public boolean hasDirectionalAttributes()
public boolean hasDirectionalAttributeValues(String fieldName)
public boolean isEndAttribute(String fieldName)
protected boolean isNull(Record object1, String name1, Record object2, String name2, Collection<String> equalExcludeAttributes)
public boolean isSideAttribute(String fieldName)
public boolean isStartAttribute(String fieldName)
public void setDirectionalAttributeValues(Map<String,Map<Object,Object>> directionalAttributeValues)
public void setEdgeSplitAttributes(LineString line, Point point, List<Edge<Record>> edges)
public void setEndAndSideFieldNamePairs(List<List<String>> endAndSideAttributePairs)
public void setSplitAttributes(LineString line, Point point, Record object)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.