org.faktorips.runtime.internal.toc
Class GenerationTocEntry

java.lang.Object
  extended by org.faktorips.runtime.internal.toc.TocEntry
      extended by org.faktorips.runtime.internal.toc.GenerationTocEntry

public class GenerationTocEntry
extends TocEntry

A toc entry that refers to an ips object generation.

Author:
Jan Ortmann

Field Summary
static String PROPERTY_VALID_FROM
           
static String XML_TAG
           
 
Fields inherited from class org.faktorips.runtime.internal.toc.TocEntry
PROPERTY_IMPLEMENTATION_CLASS, PROPERTY_XML_RESOURCE
 
Constructor Summary
GenerationTocEntry(ProductCmptTocEntry parent, DateTime validFrom, String className, String xmlResourceName)
           
 
Method Summary
protected  void addToXml(Element element)
          Adds this instance's property values to the xml element.
static GenerationTocEntry createFromXml(ProductCmptTocEntry parent, Element element)
           
 ProductCmptTocEntry getParent()
           
 DateTime getValidFrom()
           
 long getValidFromInMillisec(TimeZone zone)
          Returns the point in time this generation is valid from in the given time zone.
protected  String getXmlElementTag()
          Getting the xml element tag for this toc entry
 String getXmlResourceName()
           
 String toString()
           
 
Methods inherited from class org.faktorips.runtime.internal.toc.TocEntry
equals, getImplementationClassName, hashCode, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_TAG

public static final String XML_TAG
See Also:
Constant Field Values

PROPERTY_VALID_FROM

public static final String PROPERTY_VALID_FROM
See Also:
Constant Field Values
Constructor Detail

GenerationTocEntry

public GenerationTocEntry(ProductCmptTocEntry parent,
                          DateTime validFrom,
                          String className,
                          String xmlResourceName)
Method Detail

createFromXml

public static final GenerationTocEntry createFromXml(ProductCmptTocEntry parent,
                                                     Element element)

getXmlResourceName

public String getXmlResourceName()
Overrides:
getXmlResourceName in class TocEntry

getParent

public ProductCmptTocEntry getParent()

getValidFrom

public DateTime getValidFrom()

getValidFromInMillisec

public final long getValidFromInMillisec(TimeZone zone)
Returns the point in time this generation is valid from in the given time zone. This method never returns null.

Throws:
NullPointerException - if zone is null.

addToXml

protected void addToXml(Element element)
Description copied from class: TocEntry
Adds this instance's property values to the xml element.

Overrides:
addToXml in class TocEntry

toString

public String toString()
Overrides:
toString in class Object

getXmlElementTag

protected String getXmlElementTag()
Description copied from class: TocEntry
Getting the xml element tag for this toc entry

Specified by:
getXmlElementTag in class TocEntry


Copyright © 2015. All rights reserved.