org.ws4d.java.configuration
Class PropertyHeader

java.lang.Object
  extended by org.ws4d.java.configuration.PropertyHeader

public class PropertyHeader
extends java.lang.Object

Class includes name of property section headline and the property depth. Minimal depth of property section headline is "1";


Constructor Summary
PropertyHeader(java.lang.String[] headers)
           
PropertyHeader(java.lang.String header, int depth)
          Constructor.
PropertyHeader(java.lang.String header, PropertyHeader superHeaders)
           
PropertyHeader(java.lang.String header, java.lang.String[] superHeaders)
          Constructor.
 
Method Summary
 int depth()
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void initSuperHeaders(PropertyHeader superHeaders)
           
 PropertyHeader superHeader()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyHeader

public PropertyHeader(java.lang.String[] headers)
Parameters:
headers -

PropertyHeader

public PropertyHeader(java.lang.String header,
                      int depth)
Constructor. This constructor won't initialize the super headers. Therefore the method initSuperHeaders must be invoked afterwards.

Parameters:
header - header
depth - Depth of header, minimal depth is "1".

PropertyHeader

public PropertyHeader(java.lang.String header,
                      java.lang.String[] superHeaders)
Constructor.

Parameters:
header -
superHeaders -

PropertyHeader

public PropertyHeader(java.lang.String header,
                      PropertyHeader superHeaders)
Parameters:
header -
superHeaders -
Method Detail

initSuperHeaders

public void initSuperHeaders(PropertyHeader superHeaders)

depth

public int depth()

superHeader

public PropertyHeader superHeader()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object