org.mydm.core
Class LayoutGen

java.lang.Object
  extended byorg.mydm.core.LayoutGen

public class LayoutGen
extends java.lang.Object

Handles the All the Layout stuff of a genre.


Constructor Summary
LayoutGen(java.lang.String gen)
          Constructer
 
Method Summary
 java.lang.String getDisplayType(java.lang.String ele)
          Gets the display type of the element.
 java.lang.String getEleOfOrder(java.lang.String step, java.lang.String order)
          Get element of particular order in a step.
 java.lang.String getEleOrder(java.lang.String ele)
          Gets the element order
 int getNoSteps()
          Gets the Total number of steps in the Layout.
 java.lang.Object[] getStepAry()
          Gets the Total number of steps in the Layout.
 java.util.HashMap getStepEle(java.lang.String sno)
          Get Step Elements HashMap.
 java.lang.String getStepOfEle(java.lang.String ele)
          Gets the element stepno
 boolean isConsistent()
          Checks whether the Genre is Consistent in all aspects.
 boolean isElementsConsistent()
          Checks whether all the metadata elements in this genre are consistent.
 boolean isLayoutConsistent()
          Checks whether the Layout of the genre is consistent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutGen

public LayoutGen(java.lang.String gen)
Constructer

Parameters:
gen - genre name.
Method Detail

getNoSteps

public int getNoSteps()
Gets the Total number of steps in the Layout.

Returns:
int Number of steps in the Layout.

getStepAry

public java.lang.Object[] getStepAry()
Gets the Total number of steps in the Layout.

Returns:
steps Steps as object array.

getStepEle

public java.util.HashMap getStepEle(java.lang.String sno)
Get Step Elements HashMap.

Returns:
stepelements stepelements hashmap

getEleOfOrder

public java.lang.String getEleOfOrder(java.lang.String step,
                                      java.lang.String order)
Get element of particular order in a step.

Returns:
elename Element name.

getDisplayType

public java.lang.String getDisplayType(java.lang.String ele)
Gets the display type of the element.

Returns:
displaytype display type of the element.

getStepOfEle

public java.lang.String getStepOfEle(java.lang.String ele)
Gets the element stepno

Returns:
stepno stepno of the element.

getEleOrder

public java.lang.String getEleOrder(java.lang.String ele)
Gets the element order

Returns:
elementorder element order.

isConsistent

public boolean isConsistent()
Checks whether the Genre is Consistent in all aspects.

Returns:
true or false.

isElementsConsistent

public boolean isElementsConsistent()
Checks whether all the metadata elements in this genre are consistent.

Returns:
true of false.

isLayoutConsistent

public boolean isLayoutConsistent()
Checks whether the Layout of the genre is consistent.

Returns:
true of false.