Package com.exedio.cope.pattern
Class PartOf<C extends Item>
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.PartOf<C>
-
- All Implemented Interfaces:
Serializable
public final class PartOf<C extends Item> extends Pattern
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <C extends Item>
PartOf<C>create(ItemField<C> container)
static <C extends Item>
PartOf<C>create(ItemField<C> container, FunctionField<?> order)
ItemField<C>
getContainer()
C
getContainer(Item part)
static List<PartOf<?>>
getDeclaredPartOfs(Type<?> type)
FunctionField<?>
getOrder()
static List<PartOf<?>>
getPartOfs(Pattern pattern)
Returns all partofs of thepattern
.static List<PartOf<?>>
getPartOfs(Type<?> type)
Returns all part-of declarations wheretype
or any of it's super types is the container typegetContainer()
.getValueType()
.List<? extends Item>
getParts(Item container)
<P extends Item>
List<P>getParts(Class<P> partClass, C container)
<P extends Item>
List<P>getParts(Class<P> partClass, C container, Condition condition)
List<? extends Item>
getPartsAndCast(Item container)
Deprecated.UsegetParts(Item)
insteadstatic <C extends Item>
PartOf<C>newPartOf(ItemField<C> container)
Deprecated.Usecreate(ItemField)
insteadstatic <C extends Item>
PartOf<C>newPartOf(ItemField<C> container, FunctionField<?> order)
Deprecated.Usecreate(ItemField,FunctionField)
instead-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Method Detail
-
create
public static <C extends Item> PartOf<C> create(ItemField<C> container, FunctionField<?> order)
-
getOrder
public FunctionField<?> getOrder()
-
getParts
@Nonnull public <P extends Item> List<P> getParts(@Nonnull Class<P> partClass, C container)
-
getParts
@Nonnull public <P extends Item> List<P> getParts(@Nonnull Class<P> partClass, C container, @Nullable Condition condition)
-
getPartOfs
public static List<PartOf<?>> getPartOfs(Type<?> type)
Returns all part-of declarations wheretype
or any of it's super types is the container typegetContainer()
.getValueType()
.
-
getPartOfs
public static List<PartOf<?>> getPartOfs(Pattern pattern)
Returns all partofs of thepattern
. Considers a one step recursion forHistory
.
-
getPartsAndCast
@Deprecated public List<? extends Item> getPartsAndCast(Item container)
Deprecated.UsegetParts(Item)
instead
-
newPartOf
@Deprecated public static <C extends Item> PartOf<C> newPartOf(ItemField<C> container)
Deprecated.Usecreate(ItemField)
instead
-
newPartOf
@Deprecated public static <C extends Item> PartOf<C> newPartOf(ItemField<C> container, FunctionField<?> order)
Deprecated.Usecreate(ItemField,FunctionField)
instead
-
-