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
Modifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
protected void
finalize()
findDataType
(String name) Searches for a data type by name.static DataModel
Returns the data model containing the coreDataProperty
value types.Returns the data types of this data model.getName()
Returns the name of this data model.int
hashCode()
Returns the hash code.static DataModel.Builder
Creates a new builder.toString()
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getCoreDataModel
Returns the data model containing the coreDataProperty
value types.- Returns:
- the data model containing the core
DataProperty
value 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
-