-
-
23 Jan 2022 01:02:57 UTC
- Distribution: REST-Neo4p
- Module version: 0.4003
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (9)
- Testers (276 / 0 / 3)
- Kwalitee
Bus factor: 1- 41.72% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (161.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 5 contributors- Mark A. Jensen
-
Arne Johannessen
- Keith Broughton <@keithbro>
- Christiaan Kras <@Htbaa>
- denixx
NAME
REST::Neo4p::Constraint::RelationshipType - Neo4j Relationship Type Constraints
SYNOPSIS
# use REST::Neo4p::Constrain, it's nicer $rtc = REST::Neo4p::Constraint::RelationshipType->new( 'allowed_reln_types' => { _condition => 'only', _type_list => [qw(contains has)] } );
DESCRIPTION
REST::Neo4p::Constraint::RelationshipType
is a class that represent the set of relationship types that Relationships must (or must not) use.Constraint hash specification:
{ _condition => <'only'|'none'>, _priority => <integer priority>, _type_list => [ 'type_name_1', 'type_name_2', ...] } }
METHODS
- new()
-
$rt = REST::Neo4p::Constraint::RelationshipType->new( $tag => $constraint_hash );
- add_constraint()
- add_types()
-
$rc->add_constraint('new_type'); $rc->add_type('new_type');
- remove_constraint()
- remove_type()
-
$rc->remove_constraint('old_type'); $rc->remove_type('old_type');
- tag()
-
Returns the constraint tag.
- type()
-
Returns the constraint type ('relationship_type').
- condition()
- set_condition()
-
Get/set 'only' or 'none' for a given relationship constraint. See REST::Neo4p::Constrain.
- priority()
- set_priority()
-
Constraints with higher priority will be checked before constraints with lower priority by
validate_relationship_type()
. - constraints()
-
Returns the internal constraint spec hashref.
- validate()
-
$c->validate( 'avoids' );
Returns true if the item meets the constraint, false if not.
SEE ALSO
REST::Neo4p, REST::Neo4p::Node, REST::Neo4p::Relationship, REST::Neo4p::Constraint, REST::Neo4p::Constraint::Relationship, REST::Neo4p::Constraint::RelationshipType.
AUTHOR
Mark A. Jensen CPAN ID: MAJENSEN majensen -at- cpan -dot- org
LICENSE
Copyright (c) 2012-2022 Mark A. Jensen. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install REST::Neo4p, copy and paste the appropriate command in to your terminal.
cpanm REST::Neo4p
perl -MCPAN -e shell install REST::Neo4p
For more information on module installation, please visit the detailed CPAN module installation guide.