Package cdc.rdb
Class RdbElementPath
- java.lang.Object
-
- cdc.rdb.RdbElementPath
-
- All Implemented Interfaces:
Comparable<RdbElementPath>
public final class RdbElementPath extends Object implements Comparable<RdbElementPath>
Path associated to an element.For elements that can have siblings with same name (e.g., data type, function or procedure), a Path, as currently defined, can be ambiguous.
- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRdbElementPath.Part
-
Field Summary
Fields Modifier and Type Field Description static charKIND_SEPARATORstatic charPART_SEPARATOR
-
Constructor Summary
Constructors Constructor Description RdbElementPath(RdbElement element)RdbElementPath(RdbElementKind kind, String s)RdbElementPath(String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RdbElementPath other)booleanequals(Object object)RdbElementKindgetKind()intgetLength()RdbElementPathgetParent()RdbElementPath.PartgetPart(int index)RdbElementPath.PartgetPart(RdbElementKind kind)RdbElementPath.Part[]getParts()inthashCode()booleanhasPart(RdbElementKind kind)StringtoString()
-
-
-
Field Detail
-
KIND_SEPARATOR
public static final char KIND_SEPARATOR
- See Also:
- Constant Field Values
-
PART_SEPARATOR
public static final char PART_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RdbElementPath
RdbElementPath(RdbElement element)
-
RdbElementPath
public RdbElementPath(RdbElementKind kind, String s)
-
RdbElementPath
public RdbElementPath(String s)
-
-
Method Detail
-
getLength
public int getLength()
-
getParts
public RdbElementPath.Part[] getParts()
-
getPart
public RdbElementPath.Part getPart(int index)
-
getKind
public RdbElementKind getKind()
-
hasPart
public boolean hasPart(RdbElementKind kind)
-
getPart
public RdbElementPath.Part getPart(RdbElementKind kind)
-
getParent
public RdbElementPath getParent()
-
compareTo
public int compareTo(RdbElementPath other)
- Specified by:
compareToin interfaceComparable<RdbElementPath>
-
-