Package ch.tocco.nice2.model.entity.api
Class RelationLinkDecoder
java.lang.Object
ch.tocco.nice2.model.entity.api.RelationLinkDecoder
Decodes the strings in the <link> tag in relation xml files into its parts.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MultiRelationLink
Decodes the link for n:m relation models.static MultiRelationLink
Decodes the link string of a n:m relation model.static SingleRelationLink
Decodes the link of an 1:n relation model.static SingleRelationLink
Decodes the link name of an 1:n relation model.
-
Method Details
-
decodeMultiRelationLink
public static MultiRelationLink decodeMultiRelationLink(RelationModel model) throws IllegalArgumentException Decodes the link for n:m relation models.- Throws:
IllegalArgumentException
-
decodeMultiRelationLink
public static MultiRelationLink decodeMultiRelationLink(String link) throws IllegalArgumentException Decodes the link string of a n:m relation model.- Throws:
IllegalArgumentException
-
decodeSingleRelationLink
public static SingleRelationLink decodeSingleRelationLink(String link) throws IllegalArgumentException Decodes the link name of an 1:n relation model.- Throws:
IllegalArgumentException
-
decodeSingleRelationLink
public static SingleRelationLink decodeSingleRelationLink(RelationModel model) throws IllegalArgumentException Decodes the link of an 1:n relation model.- Throws:
IllegalArgumentException
-