Package com.abstratt.kirra
Class Namespace
- java.lang.Object
-
- com.abstratt.kirra.NamedElement<NameScope>
-
- com.abstratt.kirra.Namespace
-
- All Implemented Interfaces:
NameScope
,Serializable
,Comparable<NamedElement<NameScope>>
public class Namespace extends NamedElement<NameScope> implements NameScope
A namespace allows grouping entities, services, tuple types under a common context.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Entity>
entities
protected List<Service>
services
protected String
timestamp
protected List<TupleType>
tupleTypes
-
Fields inherited from class com.abstratt.kirra.NamedElement
description, label, name, symbol, userVisible
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
findEntity(String name)
Service
findService(String name)
TupleType
findTupleType(String name)
List<Entity>
getEntities()
List<Service>
getServices()
String
getTimestamp()
List<TupleType>
getTupleTypes()
TypeRef.TypeKind
getTypeKind()
TypeRef
getTypeRef()
void
setEntities(List<Entity> entities)
void
setServices(List<Service> services)
void
setTimestamp(String timestamp)
void
setTupleTypes(List<TupleType> tupleTypes)
-
Methods inherited from class com.abstratt.kirra.NamedElement
compareTo, equals, getDescription, getLabel, getName, getSymbol, hashCode, isUserVisible, setDescription, setLabel, setName, setSymbol, setUserVisible, toString
-
-
-
-
Constructor Detail
-
Namespace
public Namespace(String namespaceName)
-
-
Method Detail
-
getTimestamp
public String getTimestamp()
-
getTypeKind
public TypeRef.TypeKind getTypeKind()
- Specified by:
getTypeKind
in interfaceNameScope
-
getTypeRef
public TypeRef getTypeRef()
- Specified by:
getTypeRef
in interfaceNameScope
-
setTimestamp
public void setTimestamp(String timestamp)
-
-