|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.internal.toc.TocEntry
org.faktorips.runtime.internal.toc.TocEntryObject
org.faktorips.runtime.internal.toc.ProductCmptTocEntry
public class ProductCmptTocEntry
A TocEntryObject for IProductComponents
| Field Summary | |
|---|---|
static String |
PROPERTY_GENERATION_IMPL_CLASS_NAME
|
static String |
PROPERTY_KIND_ID
|
static String |
PROPERTY_VALID_TO
|
static String |
PROPERTY_VERSION_ID
|
static String |
XML_TAG
|
| Fields inherited from class org.faktorips.runtime.internal.toc.TocEntryObject |
|---|
PROPERTY_ENTRYTYPE, PROPERTY_IPS_OBJECT_ID, PROPERTY_IPS_OBJECT_QNAME |
| Fields inherited from class org.faktorips.runtime.internal.toc.TocEntry |
|---|
PROPERTY_IMPLEMENTATION_CLASS, PROPERTY_XML_RESOURCE |
| Constructor Summary | |
|---|---|
ProductCmptTocEntry(String ipsObjectId,
String ipsObjectQualifiedName,
String kindId,
String versionId,
String xmlResourceName,
String implementationClassName,
String generationImplClassName,
DateTime validTo)
|
|
| Method Summary | |
|---|---|
protected void |
addToXml(Element entryElement)
Adds this instance's property values to the xml element. |
boolean |
equals(Object obj)
|
List<GenerationTocEntry> |
getGenerationEntries()
Returns the generation entries or an empty array if this entry does not contain any generation entries. |
GenerationTocEntry |
getGenerationEntry(Calendar effectiveDate)
Returns the toc entry for the generation valid on the given effective date, or null if no generation is effective on the given date or the effective is
null. |
GenerationTocEntry |
getGenerationEntry(DateTime validAt)
Return the Generation Toc Entry for the exact valid at DateTime. |
String |
getGenerationImplClassName()
Returns the name of the generation implementation class |
String |
getKindId()
Returns the id of the product component kind, if this entry describes a product component, otherwise an empty string. |
GenerationTocEntry |
getLatestGenerationEntry()
Returns the latest GenerationTocEntry with repect to the generations validity date. |
GenerationTocEntry |
getNextGenerationEntry(Calendar validFrom)
Returns the GenerationTocEntry successor of the one that is found for the provided
validity date. |
int |
getNumberOfGenerationEntries()
Returns the number of genertion entries. |
GenerationTocEntry |
getPreviousGenerationEntry(Calendar validFrom)
Returns the GenerationTocEntry that is prior to the one that is found for the
provided validity date. |
DateTime |
getValidTo()
Returns the validTo date or null if the object doesn't supports a valid to attribute. |
String |
getVersionId()
Returns the version id if this entry describes a product component, otherwise an empty string. |
protected String |
getXmlElementTag()
Getting the xml element tag for this toc entry |
int |
hashCode()
|
void |
setGenerationEntries(List<GenerationTocEntry> entries)
Sets the generation entries. |
| Methods inherited from class org.faktorips.runtime.internal.toc.TocEntryObject |
|---|
getIpsObjectId, getIpsObjectQualifiedName, toString |
| Methods inherited from class org.faktorips.runtime.internal.toc.TocEntry |
|---|
getImplementationClassName, getXmlResourceName, toXml |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_KIND_ID
public static final String PROPERTY_VERSION_ID
public static final String PROPERTY_VALID_TO
public static final String PROPERTY_GENERATION_IMPL_CLASS_NAME
public static final String XML_TAG
| Constructor Detail |
|---|
public ProductCmptTocEntry(String ipsObjectId,
String ipsObjectQualifiedName,
String kindId,
String versionId,
String xmlResourceName,
String implementationClassName,
String generationImplClassName,
DateTime validTo)
| Method Detail |
|---|
public String getKindId()
public String getVersionId()
public DateTime getValidTo()
public List<GenerationTocEntry> getGenerationEntries()
public int getNumberOfGenerationEntries()
public String getGenerationImplClassName()
public void setGenerationEntries(List<GenerationTocEntry> entries)
public GenerationTocEntry getNextGenerationEntry(Calendar validFrom)
GenerationTocEntry successor of the one that is found for the provided
validity date. Returns null if either no entry is found for the provided date or
if the found one doesn't have a successor.
public GenerationTocEntry getPreviousGenerationEntry(Calendar validFrom)
GenerationTocEntry that is prior to the one that is found for the
provided validity date. Returns null if either no entry is found for the
provided date or if the found one doesn't have a predecessor.
public GenerationTocEntry getLatestGenerationEntry()
GenerationTocEntry with repect to the generations validity date.
public GenerationTocEntry getGenerationEntry(Calendar effectiveDate)
null if no generation is effective on the given date or the effective is
null.
public GenerationTocEntry getGenerationEntry(DateTime validAt)
DateTime. This is the most
effective way to get a generation toc entry
protected void addToXml(Element entryElement)
TocEntry
addToXml in class TocEntryObjectprotected String getXmlElementTag()
TocEntry
getXmlElementTag in class TocEntrypublic int hashCode()
hashCode in class TocEntryObjectpublic boolean equals(Object obj)
equals in class TocEntryObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||