org.faktorips.runtime.internal.toc
Class CustomTocEntryObject<T>

java.lang.Object
  extended by org.faktorips.runtime.internal.toc.TocEntry
      extended by org.faktorips.runtime.internal.toc.TocEntryObject
          extended by org.faktorips.runtime.internal.toc.CustomTocEntryObject<T>

public abstract class CustomTocEntryObject<T>
extends TocEntryObject

A TOC entry for a custom type of runtime object. The runtime object corresponds to a IpsObjectType at design time.

Author:
schwering

Field Summary
 
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
protected CustomTocEntryObject(String ipsObjectQualifiedName, String xmlResourceName, String implementationClassName)
           
 
Method Summary
abstract  T createRuntimeObject(IRuntimeRepository repository)
          Returns the object identified by this TOC entry.
abstract  String getIpsObjectTypeId()
          Returns the Id of the IpsObjectType for which this TOC entry was created.
abstract  Class<T> getRuntimeObjectClass()
          The class of the objects referenced by this TOC entry.
 
Methods inherited from class org.faktorips.runtime.internal.toc.TocEntryObject
addToXml, equals, getIpsObjectId, getIpsObjectQualifiedName, hashCode, toString
 
Methods inherited from class org.faktorips.runtime.internal.toc.TocEntry
getImplementationClassName, getXmlElementTag, getXmlResourceName, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomTocEntryObject

protected CustomTocEntryObject(String ipsObjectQualifiedName,
                               String xmlResourceName,
                               String implementationClassName)
Method Detail

createRuntimeObject

public abstract T createRuntimeObject(IRuntimeRepository repository)
Returns the object identified by this TOC entry.

Parameters:
repository - the repository used to find the object
Returns:
the object identified by this TOC entry

getRuntimeObjectClass

public abstract Class<T> getRuntimeObjectClass()
The class of the objects referenced by this TOC entry.

Returns:
the class of the objects referenced by this TOC entry

getIpsObjectTypeId

public abstract String getIpsObjectTypeId()
Returns the Id of the IpsObjectType for which this TOC entry was created.

Returns:
the Id of the IpsObjectType for which this TOC entry was created


Copyright © 2015. All rights reserved.