Package com.abstratt.kirra
Class TypedElement<O extends NameScope>
- java.lang.Object
-
- com.abstratt.kirra.NamedElement<O>
-
- com.abstratt.kirra.SubElement<O>
-
- com.abstratt.kirra.TypedElement<O>
-
- All Implemented Interfaces:
Serializable
,Comparable<NamedElement<O>>
- Direct Known Subclasses:
DataElement
,Operation
,Parameter
public abstract class TypedElement<O extends NameScope> extends SubElement<O>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,EnumerationLiteral>
enumerationLiterals
protected boolean
hasDefault
protected boolean
multiple
protected boolean
required
protected TypeRef
typeRef
-
Fields inherited from class com.abstratt.kirra.SubElement
definer, inherited, owner
-
Fields inherited from class com.abstratt.kirra.NamedElement
description, label, name, symbol, userVisible
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypedElement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static <T extends TypedElement<?>>
TfindElement(Collection<T> elements, String name, boolean mustFind)
Map<String,EnumerationLiteral>
getEnumerationLiterals()
In the case this typed element is typed by an enumeration, these are the enumeration values.String
getType()
TypeRef
getTypeRef()
int
hashCode()
boolean
isHasDefault()
boolean
isMultiple()
boolean
isRequired()
void
setEnumerationLiterals(List<EnumerationLiteral> enumerationLiterals)
void
setEnumerationLiterals(Map<String,EnumerationLiteral> enumerationLiterals)
void
setHasDefault(boolean defaulting)
void
setMultiple(boolean multiple)
void
setRequired(boolean required)
void
setTypeRef(TypeRef typeRef)
-
Methods inherited from class com.abstratt.kirra.SubElement
getDefiner, getOwner, isInherited, setDefiner, setInherited, setOwner, setOwner
-
Methods inherited from class com.abstratt.kirra.NamedElement
compareTo, getDescription, getLabel, getName, getSymbol, isUserVisible, setDescription, setLabel, setName, setSymbol, setUserVisible, toString
-
-
-
-
Field Detail
-
hasDefault
protected boolean hasDefault
-
enumerationLiterals
protected Map<String,EnumerationLiteral> enumerationLiterals
-
multiple
protected boolean multiple
-
required
protected boolean required
-
typeRef
protected TypeRef typeRef
-
-
Method Detail
-
findElement
public static <T extends TypedElement<?>> T findElement(Collection<T> elements, String name, boolean mustFind)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classNamedElement<O extends NameScope>
-
getEnumerationLiterals
public Map<String,EnumerationLiteral> getEnumerationLiterals()
In the case this typed element is typed by an enumeration, these are the enumeration values.
-
getType
public String getType()
-
getTypeRef
public TypeRef getTypeRef()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNamedElement<O extends NameScope>
-
isHasDefault
public boolean isHasDefault()
-
isMultiple
public boolean isMultiple()
-
isRequired
public boolean isRequired()
-
setHasDefault
public void setHasDefault(boolean defaulting)
-
setEnumerationLiterals
public void setEnumerationLiterals(Map<String,EnumerationLiteral> enumerationLiterals)
-
setEnumerationLiterals
public void setEnumerationLiterals(List<EnumerationLiteral> enumerationLiterals)
-
setMultiple
public void setMultiple(boolean multiple)
-
setRequired
public void setRequired(boolean required)
-
setTypeRef
public void setTypeRef(TypeRef typeRef)
-
-