public class Mixin extends Category
SCHEME_CORE_DEFAULT, SCHEME_INFRASTRUCTURE_DEFAULT
Constructor and Description |
---|
Mixin(URI scheme,
String term)
Constructor.
|
Mixin(URI scheme,
String term,
String title,
URI location,
Collection<Attribute> attributes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRelation(Mixin mixin)
Creates a relation with given mixin.
|
void |
clearRelations()
Remove all relations.
|
Mixin |
getRelatedMixin(String mixinIdentifier)
Creates a relation with given mixin.
|
Set<Mixin> |
getRelations()
Returns all related mixins in form of set.
|
boolean |
relatesTo(Mixin mixin)
Checks whether this mixin is in relation with given mixin.
|
boolean |
relatesTo(String mixinIdentifier)
Checks whether this mixin is in relation with given mixin.
|
boolean |
removeRelation(Mixin mixin)
Removes relation with given mixin.
|
addAction, addAttribute, addEntity, clearActions, clearAttributes, clearEntities, compareTo, containsAction, containsAction, containsAttribute, containsAttribute, containsEntity, containsEntity, equals, getAction, getActions, getAttribute, getAttributes, getEntities, getEntity, getIdentifier, getLocation, getScheme, getTerm, getTitle, hashCode, removeAction, removeAttribute, removeEntity, setLocation, setScheme, setTerm, setTitle, toHeaders, toHeaders, toString, toText, toText
public Mixin(URI scheme, String term, String title, URI location, Collection<Attribute> attributes)
scheme
- mixin's scheme. Cannot be null.term
- mixin's term. Cannot be null nor empty.title
- mixin's titlelocation
- mixin's locationattributes
- mixin's attributespublic boolean relatesTo(Mixin mixin)
mixin
- mixin to chcek relation withpublic boolean relatesTo(String mixinIdentifier)
mixinIdentifier
- identifier of mixin to chcek relation withpublic boolean addRelation(Mixin mixin)
mixin
- mixin to create a relation withpublic Mixin getRelatedMixin(String mixinIdentifier)
mixinIdentifier
- identifier of mixin to create a relation withpublic boolean removeRelation(Mixin mixin)
mixin
- mixin with which relation will be removedpublic void clearRelations()
Copyright © 2016. All Rights Reserved.