Package com.luciad.datamodels
Class DataModel
java.lang.Object
com.luciad.datamodels.DataModel
- All Implemented Interfaces:
AutoCloseable
A data model is a collection of types that forms a logical entity.
Conceptually this is similar to a UML package or an XML schema.
A data model is identified by its name. Two data models are considered to be equal if they have the same name and data types.
DataModel provides access to its types (see getDataTypes()).
Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.
Data models are created using a DataModel.Builder (see newBuilder()).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanprotected voidfinalize()findDataType(String name) Searches for a data type by name.static DataModelReturns the data model containing the coreDataPropertyvalue types.Returns the data types of this data model.getName()Returns the name of this data model.inthashCode()Returns the hash code.static DataModel.BuilderCreates a new builder.toString()
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getCoreDataModel
Returns the data model containing the coreDataPropertyvalue types.- Returns:
- the data model containing the core
DataPropertyvalue types.
-
newBuilder
Creates a new builder.- Returns:
- a new builder.
-
getName
Returns the name of this data model.- Returns:
- the name of this data model.
-
getDataTypes
Returns the data types of this data model.- Returns:
- the data types of this data model.
-
findDataType
Searches for a data type by name.- Parameters:
name- the name for a data type.- Returns:
- the data type named name, if such a type exists in this data model.
-
toString
-
hashCode
public int hashCode()Returns the hash code. -
equals
-