|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.connector.federation.Projection.Rule
@Immutable public abstract static class Projection.Rule

A rule used within a project do define how content within a source is projected into the federated repository. This mapping is bi-directional, meaning it's possible to determine
| Constructor Summary | |
|---|---|
Projection.Rule()
|
|
| Method Summary | |
|---|---|
abstract Path |
getPathInRepository(Path pathInSource,
PathFactory factory)
Get the path in repository that is projected from the supplied source path, or null if the supplied source path is not projected into the repository. |
abstract Path |
getPathInSource(Path pathInRepository,
PathFactory factory)
Get the path in source that is projected from the supplied repository path, or null if the supplied repository path is not projected into the source. |
abstract String |
getString()
|
abstract String |
getString(NamespaceRegistry registry,
TextEncoder encoder)
|
abstract String |
getString(TextEncoder encoder)
|
abstract List<Path> |
getTopLevelPathsInRepository(PathFactory factory)
Get the paths in the repository that serve as top-level nodes exposed by this rule. |
abstract boolean |
isTopLevelPath(Path path)
Determine if the supplied path is the same as one of the top-level nodes exposed by this rule. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Projection.Rule()
| Method Detail |
|---|
public abstract List<Path> getTopLevelPathsInRepository(PathFactory factory)
factory - the path factory that can be used to create new paths; may not be null
public abstract boolean isTopLevelPath(Path path)
path - the path; may not be null
top-level paths
, or false otherwise
public abstract Path getPathInSource(Path pathInRepository,
PathFactory factory)
pathInRepository - the path in the repository; may not be nullfactory - the path factory; may not be null
public abstract Path getPathInRepository(Path pathInSource,
PathFactory factory)
pathInSource - the path in the source; may not be nullfactory - the path factory; may not be null
public abstract String getString(NamespaceRegistry registry,
TextEncoder encoder)
public abstract String getString(TextEncoder encoder)
public abstract String getString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||