Package com.abstratt.kirra
Class NamedElement<O extends NameScope>
- java.lang.Object
-
- com.abstratt.kirra.NamedElement<O>
-
- All Implemented Interfaces:
Serializable
,Comparable<NamedElement<O>>
- Direct Known Subclasses:
EnumerationLiteral
,Namespace
,SubElement
,TopLevelElement
public abstract class NamedElement<O extends NameScope> extends Object implements Serializable, Comparable<NamedElement<O>>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
label
protected String
name
protected String
symbol
protected boolean
userVisible
-
Constructor Summary
Constructors Constructor Description NamedElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NamedElement<O> o)
boolean
equals(Object obj)
String
getDescription()
String
getLabel()
String
getName()
String
getSymbol()
int
hashCode()
boolean
isUserVisible()
void
setDescription(String description)
void
setLabel(String label)
void
setName(String name)
void
setSymbol(String symbol)
void
setUserVisible(boolean userVisible)
String
toString()
-
-
-
Method Detail
-
isUserVisible
public boolean isUserVisible()
-
setUserVisible
public void setUserVisible(boolean userVisible)
-
compareTo
public int compareTo(NamedElement<O> o)
- Specified by:
compareTo
in interfaceComparable<O extends NameScope>
-
getDescription
public String getDescription()
-
getLabel
public String getLabel()
-
getName
public String getName()
-
getSymbol
public String getSymbol()
-
setDescription
public void setDescription(String description)
-
setLabel
public void setLabel(String label)
-
setName
public void setName(String name)
-
setSymbol
public void setSymbol(String symbol)
-
-