Package schema2template.example.odf
Class SourceCodeBaseClass
- java.lang.Object
-
- 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 classConvention: Unique key is the name of the baseclass. So name is used for compareTo(o), equals(o) and hashCode().
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSourceCodeBaseClass(OdfModel odfmodel, String basename, SortedSet<PuzzlePiece> subelements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SourceCodeBaseClass o)booleanequals(Object o)PuzzlePieceSetgetBaseAttributes()Returns the attribute Definitions which are shared by all subclasses of this JavaBaseClassPuzzlePieceSetgetElements()Returns the element Definitions which are subclassing this JavaBaseClassStringgetLocalName()Get only localnameStringgetNamespace()Get only namespaceStringgetQName()Get the QName (i.e.inthashCode()booleanisStylable()Determines whether all subclasses of this JavaBaseClass are stylable or not stylable.StringtoString()
-
-
-
Constructor Detail
-
SourceCodeBaseClass
protected SourceCodeBaseClass(OdfModel odfmodel, String basename, SortedSet<PuzzlePiece> subelements)
-
-
Method Detail
-
compareTo
public int compareTo(SourceCodeBaseClass o)
- Specified by:
compareToin interfaceComparable<SourceCodeBaseClass>
-
getLocalName
public String getLocalName()
Description copied from interface:QNamedGet only localname- Specified by:
getLocalNamein interfaceQNamed- Returns:
- localname
-
getQName
public String getQName()
Description copied from interface:QNamedGet the QName (i.e. namespace:localname )
-
getNamespace
public String getNamespace()
Description copied from interface:QNamedGet only namespace- Specified by:
getNamespacein interfaceQNamed- Returns:
- namespace
-
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
-
-