public class SemanticType extends CloneableDataObject
Title: Fabric Repository Framework
Description: This class represents an Semantic Type
definition used by
the repository to resolve semantic object names to their associate
class names.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
SemanticType(java.lang.String name,
java.lang.String className)
Constructs a new instance of non-system type.
|
Modifier and Type | Method and Description |
---|---|
SemanticType |
clone()
Clones the object.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAncestorType()
Returns the ancestor type of this type.
|
java.lang.String |
getClassName()
Returns the class name of the object type in this binding.
|
java.lang.String |
getDescription()
Returns the description of this semantic type.
|
long |
getSerialVersionUID()
Returns the
Serial Version Unique Identifier of this type. |
long |
getTimestamp() |
java.lang.String |
getTypeName()
Returns the name of this type binding.
|
boolean |
isDirty()
Checks if the package containing the associated class has been reloaded (one or more times).
|
boolean |
isInterface()
Returns
true if this semantic type is an interface. |
boolean |
isSystem()
Checks if the type is a system type.
|
boolean |
isValid()
Checks if the type is valid.
|
boolean |
isVerified()
Checks if this semantic type is verified (by a higher authority).
|
void |
setAncestorType(java.lang.String typeAncestor)
Sets the ancestor type of this type.
|
void |
setDescription(java.lang.String description)
Sets the description for this semantic type.
|
void |
setInterface(boolean isInterface)
Sets a flag specifying if the type is an interface or not.
|
java.lang.String |
toString()
Returns a a string representation of this type.
|
public SemanticType(java.lang.String name, java.lang.String className)
name
- the type name.className
- the implementing class name.public boolean isValid()
true
if the type is valid, false
otherwise.public boolean isVerified()
true
if this semantic type is verified, false
otherwise.public long getSerialVersionUID()
Serial Version Unique Identifier
of this type.getSerialVersionUID
in interface StructuredDataObject
getSerialVersionUID
in class CloneableDataObject
Serial Version UID
.public boolean isSystem()
true
if the type is a system type, false
otherwise.public boolean isInterface()
true
if this semantic type is an interface.true
if the type is an interface, false
otherwise.public void setInterface(boolean isInterface)
isInterface
- the flag to be set.public void setAncestorType(java.lang.String typeAncestor)
Object
type.typeAncestor
- the ancestor type to be set.public java.lang.String getAncestorType()
public void setDescription(java.lang.String description)
description
- the type description to be set.public java.lang.String getDescription()
public java.lang.String getClassName()
public java.lang.String getTypeName()
public long getTimestamp()
public boolean isDirty()
class loader
containing the associated class.
It can cause some problems during deserialization of the corresponding objects. Reloading of the node can solve this issue.true
if the type is dirty, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public SemanticType clone()
CloneableDataObject
clone
in interface CloneableObject
clone
in class CloneableDataObject
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.