Class ArchetypeAttributesDefinition
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributesDefinition
-
- All Implemented Interfaces:
java.lang.Iterable<ArchetypeAttributeDefinition>
public class ArchetypeAttributesDefinition extends java.lang.Object implements java.lang.Iterable<ArchetypeAttributeDefinition>
A set ofArchetypeAttributeDefinitions. Corresponds to a list of <attribute> definitions in types.xml.
-
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributesDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(@NotNull ArchetypeAttributeDefinition archetypeAttribute)Adds anArchetypeAttributeDefinition.booleanisEmpty()Returns whether no attribute definitions exist.java.util.Iterator<ArchetypeAttributeDefinition>iterator()booleanmatches(@NotNull Attributes baseObject)Checks whether anAttributesinstance matches all type attributes.@NotNull java.lang.StringtoString()
-
-
-
Method Detail
-
add
public void add(@NotNull @NotNull ArchetypeAttributeDefinition archetypeAttribute)Adds anArchetypeAttributeDefinition.- Parameters:
archetypeAttribute- the definition to add
-
matches
public boolean matches(@NotNull @NotNull Attributes baseObject)Checks whether anAttributesinstance matches all type attributes.- Parameters:
baseObject- the base object to check- Returns:
- whether the base object matches
-
iterator
public java.util.Iterator<ArchetypeAttributeDefinition> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<ArchetypeAttributeDefinition>
-
isEmpty
public boolean isEmpty()
Returns whether no attribute definitions exist.- Returns:
- whether no attribute definitions exist
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-