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
Modifier and TypeMethodDescriptionstatic StringJoins flags into a single cell value.static booleanReturns whether an entity matches a filter.Gets the flags of an attribute.Gets the flags of an entity.Gets the flags of a relation.
-
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
-