Class ProductCmptTocEntry
java.lang.Object
org.faktorips.runtime.internal.toc.TocEntry
org.faktorips.runtime.internal.toc.TocEntryObject
org.faktorips.runtime.internal.toc.ProductCmptTocEntry
A
TocEntryObject for IProductComponents- Author:
- dirmeier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.faktorips.runtime.internal.toc.TocEntryObject
PROPERTY_ENTRYTYPE, PROPERTY_IPS_OBJECT_ID, PROPERTY_IPS_OBJECT_QNAMEFields inherited from class org.faktorips.runtime.internal.toc.TocEntry
PROPERTY_IMPLEMENTATION_CLASS, PROPERTY_XML_RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds this instance's property values to the xml element.booleanfindGenerationEntry(Calendar effectiveDate) Returns an Optional containing the toc entry for the generation valid on the given effective date, or anempty Optionalif no generation is effective on the given date or the effective isnull.findGenerationEntry(DateTime validAt) Return an Optional containing the Generation Toc Entry for the exact valid atDateTime.Returns an Optional containing the latestGenerationTocEntrywith respect to the generations validity date.findNextGenerationEntry(Calendar validFrom) Returns an Optional containing theGenerationTocEntrysuccessor of the one that is found for the provided validity date.findPreviousGenerationEntry(Calendar validFrom) Returns an Optional containing theGenerationTocEntrythat is prior to the one that is found for the provided validity date.Returns the generation entries or an empty array if this entry does not contain any generation entries.getGenerationEntry(Calendar effectiveDate) Returns the toc entry for the generation valid on the given effective date, ornullif no generation is effective on the given date or the effective isnull.getGenerationEntry(DateTime validAt) Return the Generation Toc Entry for the exact valid atDateTime.Returns the name of the generation implementation classReturns the id of the product component kind, if this entry describes a product component, otherwise an empty string.Returns the latestGenerationTocEntrywith repect to the generations validity date.getNextGenerationEntry(Calendar validFrom) Returns theGenerationTocEntrysuccessor of the one that is found for the provided validity date.intReturns the number of generation entries.getPreviousGenerationEntry(Calendar validFrom) Returns theGenerationTocEntrythat is prior to the one that is found for the provided validity date.Returns the validTo date or null if the object doesn't supports a valid to attribute.Returns the version id if this entry describes a product component, otherwise an empty string.protected StringGetting the xml element tag for this toc entryinthashCode()voidsetGenerationEntries(List<GenerationTocEntry> entries) Sets the generation entries.Methods inherited from class org.faktorips.runtime.internal.toc.TocEntryObject
getIpsObjectId, getIpsObjectQualifiedName, toStringMethods inherited from class org.faktorips.runtime.internal.toc.TocEntry
getImplementationClassName, getXmlResourceName, toXml
-
Field Details
-
PROPERTY_KIND_ID
- See Also:
-
PROPERTY_VERSION_ID
- See Also:
-
PROPERTY_VALID_TO
- See Also:
-
PROPERTY_GENERATION_IMPL_CLASS_NAME
- See Also:
-
XML_TAG
- See Also:
-
-
Constructor Details
-
ProductCmptTocEntry
-
-
Method Details
-
getKindId
Returns the id of the product component kind, if this entry describes a product component, otherwise an empty string. -
getVersionId
Returns the version id if this entry describes a product component, otherwise an empty string. -
getValidTo
Returns the validTo date or null if the object doesn't supports a valid to attribute. -
getGenerationEntries
Returns the generation entries or an empty array if this entry does not contain any generation entries. -
getNumberOfGenerationEntries
public int getNumberOfGenerationEntries()Returns the number of generation entries. -
getGenerationImplClassName
Returns the name of the generation implementation class -
setGenerationEntries
Sets the generation entries. -
getNextGenerationEntry
Returns theGenerationTocEntrysuccessor of the one that is found for the provided validity date. Returnsnullif either no entry is found for the provided date or if the found one doesn't have a successor. -
findNextGenerationEntry
Returns an Optional containing theGenerationTocEntrysuccessor of the one that is found for the provided validity date. Returns anempty Optionalif either no entry is found for the provided date or if the found one doesn't have a successor. -
getPreviousGenerationEntry
Returns theGenerationTocEntrythat is prior to the one that is found for the provided validity date. Returnsnullif either no entry is found for the provided date or if the found one doesn't have a predecessor. -
findPreviousGenerationEntry
Returns an Optional containing theGenerationTocEntrythat is prior to the one that is found for the provided validity date. Returns anempty Optionalif either no entry is found for the provided date or if the found one doesn't have a predecessor. -
getLatestGenerationEntry
Returns the latestGenerationTocEntrywith repect to the generations validity date. -
findLatestGenerationEntry
Returns an Optional containing the latestGenerationTocEntrywith respect to the generations validity date. -
getGenerationEntry
Returns the toc entry for the generation valid on the given effective date, ornullif no generation is effective on the given date or the effective isnull. -
findGenerationEntry
Returns an Optional containing the toc entry for the generation valid on the given effective date, or anempty Optionalif no generation is effective on the given date or the effective isnull. -
getGenerationEntry
Return the Generation Toc Entry for the exact valid atDateTime. This is the most effective way to get a generation toc entry -
findGenerationEntry
Return an Optional containing the Generation Toc Entry for the exact valid atDateTime. This is the most effective way to get a generation toc entry. -
addToXml
Description copied from class:TocEntryAdds this instance's property values to the xml element.- Overrides:
addToXmlin classTocEntryObject
-
getXmlElementTag
Description copied from class:TocEntryGetting the xml element tag for this toc entry- Specified by:
getXmlElementTagin classTocEntry
-
hashCode
public int hashCode()- Overrides:
hashCodein classTocEntryObject
-
equals
- Overrides:
equalsin classTocEntryObject
-