schema2template.example.odf
public class SourceCodeBaseClass extends Object implements Comparable<SourceCodeBaseClass>, QNamed
Convention: Unique key is the name of the baseclass. So name is used for compareTo(o), equals(o) and hashCode().
Modifier | Constructor and Description |
---|---|
protected |
SourceCodeBaseClass(OdfModel odfmodel,
String basename,
SortedSet<PuzzlePiece> subelements) |
Modifier and Type | Method and Description |
---|---|
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() |
protected SourceCodeBaseClass(OdfModel odfmodel, String basename, SortedSet<PuzzlePiece> subelements)
public int compareTo(SourceCodeBaseClass o)
compareTo
in interface Comparable<SourceCodeBaseClass>
public String getLocalName()
QNamed
getLocalName
in interface QNamed
public String getQName()
QNamed
public String getNamespace()
QNamed
getNamespace
in interface QNamed
public PuzzlePieceSet getElements()
public PuzzlePieceSet getBaseAttributes()
public boolean isStylable()
RuntimeException
- if some subclasses are stylable and some are notCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.