public class ProductCmptTocEntry extends TocEntryObject
TocEntryObject for IProductComponents| Modifier and Type | Field and Description |
|---|---|
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 |
PROPERTY_ENTRYTYPE, PROPERTY_IPS_OBJECT_ID, PROPERTY_IPS_OBJECT_QNAMEPROPERTY_IMPLEMENTATION_CLASS, PROPERTY_XML_RESOURCE| Constructor and Description |
|---|
ProductCmptTocEntry(String ipsObjectId,
String ipsObjectQualifiedName,
String kindId,
String versionId,
String xmlResourceName,
String implementationClassName,
String generationImplClassName,
DateTime validTo) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getIpsObjectId, getIpsObjectQualifiedName, toStringgetImplementationClassName, getXmlResourceName, toXmlpublic 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
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 entryprotected void addToXml(Element entryElement)
TocEntryaddToXml in class TocEntryObjectprotected String getXmlElementTag()
TocEntrygetXmlElementTag in class TocEntrypublic int hashCode()
hashCode in class TocEntryObjectpublic boolean equals(Object obj)
equals in class TocEntryObjectCopyright © 2018. All rights reserved.