org.jtheque.primary.od.impl
Class PrimarySimpleDataImpl

java.lang.Object
  extended by org.jtheque.core.managers.persistence.AbstractEntity
      extended by org.jtheque.primary.od.impl.abstraction.AbstractData
          extended by org.jtheque.primary.od.impl.SimpleDataImpl
              extended by org.jtheque.primary.od.impl.PrimarySimpleDataImpl
All Implemented Interfaces:
Comparable<org.jtheque.core.managers.persistence.able.Entity>, org.jtheque.core.managers.persistence.able.Entity, Data, PrimaryData, PrimarySimpleData, SimpleData, TreeElement

public final class PrimarySimpleDataImpl
extends SimpleDataImpl
implements PrimarySimpleData

A primary simple data implementation.

Author:
Baptiste Wicht

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jtheque.primary.od.able.SimpleData
SimpleData.DataType
 
Field Summary
 
Fields inherited from class org.jtheque.core.managers.persistence.AbstractEntity
HASHCODE_PRIME
 
Constructor Summary
PrimarySimpleDataImpl(SimpleData.DataType type, String primaryImpl)
          Construct a new PrimarySimpleDataImpl.
 
Method Summary
 boolean equals(Object obj)
           
 String getPrimaryImpl()
          Return the primary implementation of this data.
 int hashCode()
           
 void setPrimaryImpl(String impl)
          Set the primary implementation of the data.
 
Methods inherited from class org.jtheque.primary.od.impl.SimpleDataImpl
getDisplayableText, getName, getType, setName, toString
 
Methods inherited from class org.jtheque.primary.od.impl.abstraction.AbstractData
add, addAll, clear, getChild, getChildCount, getElementName, getIcon, indexOf, isCategory, isLeaf, isRoot
 
Methods inherited from class org.jtheque.core.managers.persistence.AbstractEntity
compareTo, getId, getTemporaryContext, isSaved, restoreMemento, saveToMemento, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jtheque.primary.od.able.SimpleData
getName, getType, setName
 
Methods inherited from interface org.jtheque.core.managers.persistence.able.Entity
getDisplayableText, getId, getTemporaryContext, isSaved, restoreMemento, saveToMemento, setId
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.jtheque.primary.view.impl.models.tree.TreeElement
add, addAll, clear, getChild, getChildCount, getElementName, getIcon, indexOf, isCategory, isLeaf, isRoot
 

Constructor Detail

PrimarySimpleDataImpl

public PrimarySimpleDataImpl(SimpleData.DataType type,
                             String primaryImpl)
Construct a new PrimarySimpleDataImpl.

Parameters:
type - The simple data type.
primaryImpl - The primary implementation.
Method Detail

getPrimaryImpl

public String getPrimaryImpl()
Description copied from interface: PrimaryData
Return the primary implementation of this data.

Specified by:
getPrimaryImpl in interface PrimaryData
Returns:
The primary implementation of this data.

setPrimaryImpl

public void setPrimaryImpl(String impl)
Description copied from interface: PrimaryData
Set the primary implementation of the data.

Specified by:
setPrimaryImpl in interface PrimaryData
Parameters:
impl - The primary impl of the data.

hashCode

public int hashCode()
Overrides:
hashCode in class SimpleDataImpl

equals

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


Copyright © 2010 JTheque. All Rights Reserved.