schema2template.example.odf
Class SourceCodeBaseClass

java.lang.Object
  extended by schema2template.example.odf.SourceCodeBaseClass
All Implemented Interfaces:
Comparable<SourceCodeBaseClass>, QNamed

public class SourceCodeBaseClass
extends Object
implements Comparable<SourceCodeBaseClass>, QNamed

Encapsulates the name of the java base class

Convention: Unique key is the name of the baseclass. So name is used for compareTo(o), equals(o) and hashCode().


Constructor Summary
protected SourceCodeBaseClass(OdfModel odfmodel, String basename, SortedSet<PuzzlePiece> subelements)
           
 
Method Summary
 int compareTo(SourceCodeBaseClass o)
           
 boolean equals(Object o)
           
 PuzzlePieceSet getBaseAttributes()
          Returns the attribute Definitions which are shared by all subclasses of this JavaBaseClass
 PuzzlePieceSet getElements()
          Returns the element Definitions which are subclassing this JavaBaseClass
 String getLocalName()
          Get only localname
 String getNamespace()
          Get only namespace
 String getQName()
          Get the QName (i.e.
 int hashCode()
           
 boolean isStylable()
          Determines whether all subclasses of this JavaBaseClass are stylable or not stylable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceCodeBaseClass

protected SourceCodeBaseClass(OdfModel odfmodel,
                              String basename,
                              SortedSet<PuzzlePiece> subelements)
Method Detail

compareTo

public int compareTo(SourceCodeBaseClass o)
Specified by:
compareTo in interface Comparable<SourceCodeBaseClass>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getLocalName

public String getLocalName()
Description copied from interface: QNamed
Get only localname

Specified by:
getLocalName in interface QNamed
Returns:
localname

getQName

public String getQName()
Description copied from interface: QNamed
Get the QName (i.e. namespace:localname )

Specified by:
getQName in interface QNamed
Returns:
full name

getNamespace

public String getNamespace()
Description copied from interface: QNamed
Get only namespace

Specified by:
getNamespace in interface QNamed
Returns:
namespace

toString

public String toString()
Overrides:
toString in class Object

getElements

public PuzzlePieceSet getElements()
Returns the element Definitions which are subclassing this JavaBaseClass

Returns:
subclasses

getBaseAttributes

public PuzzlePieceSet getBaseAttributes()
Returns the attribute Definitions which are shared by all subclasses of this JavaBaseClass

Returns:
attributes

isStylable

public boolean isStylable()
Determines whether all subclasses of this JavaBaseClass are stylable or not stylable.

Returns:
whether all subclasses are stylable (true) or none (false).
Throws:
RuntimeException - if some subclasses are stylable and some are not


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.