Class PathUriResolver
java.lang.Object
ch.tocco.nice2.persist.core.api.util.TargetResolver
ch.tocco.nice2.netui.impl.bind.util.PathUriResolver
- All Implemented Interfaces:
Path.Resolver
A special
TargetResolver
that collects path identifiers
to a partial URI. The partial URI is available via getUriPath()
.-
Constructor Summary
ConstructorDescriptionPathUriResolver
(Entity entity, boolean allowNullResult, UriResolver uriResolver) PathUriResolver
(Entity entity, UriResolver uriResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
field
(Path path, EntityModel entityModel, FieldModel element) @Nullable String
protected void
Called each time a new entity is resolved.void
relation
(Path path, EntityModel entityModel, RelationModel element) void
reset()
protected EntityList
Methods inherited from class ch.tocco.nice2.persist.core.api.util.TargetResolver
getEntity, getEntityList, getField, getRelation
-
Constructor Details
-
PathUriResolver
-
PathUriResolver
-
-
Method Details
-
relation
public void relation(Path path, EntityModel entityModel, RelationModel element) throws PersistException - Specified by:
relation
in interfacePath.Resolver
- Overrides:
relation
in classTargetResolver
- Throws:
PersistException
-
field
- Specified by:
field
in interfacePath.Resolver
- Overrides:
field
in classTargetResolver
- Throws:
PersistException
-
onEntityResolve
protected void onEntityResolve()Description copied from class:TargetResolver
Called each time a new entity is resolved. Get the current one withTargetResolver.getEntity()
- Overrides:
onEntityResolve
in classTargetResolver
-
getUriPath
-
reset
public void reset() -
resolve
- Overrides:
resolve
in classTargetResolver
- Throws:
PersistException
-