Class Flags
java.lang.Object
org.tentackle.maven.plugin.mcp.render.Flags
Renders the boolean facets of a model element as a compact, greppable list.
A row in a table cannot carry thirty columns of booleans, but it can carry the handful that are true.
- Author:
- harald
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]The entity filters usable in a listing, in the order they are documented. -
Method Summary
-
Field Details
-
ENTITY_FILTERS
The entity filters usable in a listing, in the order they are documented.
-
-
Method Details
-
of
-
matches
Returns whether an entity matches a filter.- Parameters:
entity- the entityfilter- the filter name, seeENTITY_FILTERS- Returns:
- true if the entity matches
- Throws:
IllegalArgumentException- if the filter is unknown
-
of
Gets the flags of an attribute.- Parameters:
attribute- the attribute- Returns:
- the flags, empty if the attribute is plain
- Throws:
ModelException- if the model is inconsistent
-
of
-
join
-
selection
Renders the selection strategy of a relation.An eager relation that cascades beyond the default single level is rendered with its depth appended, e.g.
EAGER:2, so the real fetch plan is visible.- Parameters:
relation- the relation- Returns:
- the cell value
-