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
ConstructorsConstructorDescriptionPathUriResolver(Entity entity, boolean allowNullResult, UriResolver uriResolver) PathUriResolver(Entity entity, UriResolver uriResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidfield(Path path, EntityModel entityModel, FieldModel element) @Nullable Stringprotected voidCalled each time a new entity is resolved.voidrelation(Path path, EntityModel entityModel, RelationModel element) voidreset()protected EntityListMethods inherited from class 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:
relationin interfacePath.Resolver- Overrides:
relationin classTargetResolver- Throws:
PersistException
-
field
- Specified by:
fieldin interfacePath.Resolver- Overrides:
fieldin classTargetResolver- Throws:
PersistException
-
onEntityResolve
protected void onEntityResolve()Description copied from class:TargetResolverCalled each time a new entity is resolved. Get the current one withTargetResolver.getEntity()- Overrides:
onEntityResolvein classTargetResolver
-
getUriPath
-
reset
public void reset() -
resolve
- Overrides:
resolvein classTargetResolver- Throws:
PersistException
-