org.faktorips.runtime.internal.toc
Class TocEntryObject

java.lang.Object
  extended by org.faktorips.runtime.internal.toc.TocEntry
      extended by org.faktorips.runtime.internal.toc.TocEntryObject
Direct Known Subclasses:
CustomTocEntryObject, EnumContentTocEntry, EnumXmlAdapterTocEntry, ModelTypeTocEntry, ProductCmptTocEntry, TableContentTocEntry, TestCaseTocEntry

public abstract class TocEntryObject
extends TocEntry

A toc entry that represents a product component, a table, a test case or an enum content identified by the qualified name. Each entry gives access to the class implementing either the product component, the table, the test case or the enum content.

Author:
Jan Ortmann

Field Summary
static String PROPERTY_ENTRYTYPE
           
static String PROPERTY_IPS_OBJECT_ID
           
static String PROPERTY_IPS_OBJECT_QNAME
           
 
Fields inherited from class org.faktorips.runtime.internal.toc.TocEntry
PROPERTY_IMPLEMENTATION_CLASS, PROPERTY_XML_RESOURCE
 
Constructor Summary
protected TocEntryObject(String ipsObjectId, String ipsObjectQualifiedName, String xmlResourceName, String implementationClassName)
           
 
Method Summary
protected  void addToXml(Element entryElement)
          Adds this instance's property values to the xml element.
 boolean equals(Object obj)
           
 String getIpsObjectId()
          Returns the id for the object (either the runtime id if the object is a product component or the qualified name if the object is a table
 String getIpsObjectQualifiedName()
          Returns the qualified name of the object.
 int hashCode()
           
 String 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
 

Field Detail

PROPERTY_ENTRYTYPE

public static final String PROPERTY_ENTRYTYPE
See Also:
Constant Field Values

PROPERTY_IPS_OBJECT_ID

public static final String PROPERTY_IPS_OBJECT_ID
See Also:
Constant Field Values

PROPERTY_IPS_OBJECT_QNAME

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

TocEntryObject

protected TocEntryObject(String ipsObjectId,
                         String ipsObjectQualifiedName,
                         String xmlResourceName,
                         String implementationClassName)
Method Detail

getIpsObjectId

public String getIpsObjectId()
Returns the id for the object (either the runtime id if the object is a product component or the qualified name if the object is a table


getIpsObjectQualifiedName

public String getIpsObjectQualifiedName()
Returns the qualified name of the object.


addToXml

protected void addToXml(Element entryElement)
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

hashCode

public int hashCode()
Overrides:
hashCode in class TocEntry

equals

public boolean equals(Object obj)
Overrides:
equals in class TocEntry


Copyright © 2015. All rights reserved.