public abstract class Type extends TypeManagerManaged
Types have a unique (case insensitive) code, know their instances and may provide a default value.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Type.TypeImpl
The persistence layer implementation interface.
|
TypeManagerManaged.TypeManagerManagedImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
CODE
The code attribute string constant.
|
static String |
DEFAULTVALUE
The default value attribute string constant.
|
static String |
DESCRIPTION
The description attribute string constant.
|
static String |
XMLDEFINITION
The xml definition attribute string constant.
|
AUTOCREATE, DEPRECATED, EXTENSION_NAME, GENERATE, NAMELANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
Type() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Makes types comparable by their code (case insenesitive).
|
Map |
getAllDescriptions() |
Map |
getAllDescriptions(SessionContext ctx) |
String |
getCode()
Returns the unique code of this type.
|
Object |
getDefaultValue()
Returns the default value of this type.
|
Object |
getDefaultValue(SessionContext ctx)
Returns the default value of this type.
|
String |
getDescription() |
String |
getDescription(SessionContext ctx) |
protected Type.TypeImpl |
getTypeImpl()
Internal access to persistence layer implementation.
|
abstract String |
getXMLDefinition()
Returns the XML definition string as expected by
items.xml . |
abstract boolean |
isAssignableFrom(Type type)
Tests if this type is assignable from a given type.
|
abstract boolean |
isInstance(Object o)
Test whether an object is an instance of this type or not.
|
abstract Object |
parseValue(SessionContext ctx,
String value) |
void |
setAllDescriptions(Map descriptions)
Changes all descriptions by specifying a language-to-description map.
|
void |
setAllDescriptions(SessionContext ctx,
Map descriptions)
Changes all descriptions by specifying a language-to-description map.
|
void |
setDefaultValue(Object value)
Changes the default value of this type.
|
void |
setDefaultValue(SessionContext ctx,
Object value)
Changes the default value of this type.
|
void |
setDescription(SessionContext ctx,
String description)
Changes the type description for the given session context language.
|
void |
setDescription(String description)
Changes the type description for the current session language.
|
String |
toString()
Provides a string representation of this type.
|
abstract String |
toString(SessionContext ctx,
Object value) |
exportXMLDefinition, getAllNames, getAllNames, getExtensionName, getImpl, getName, getName, isAutocreate, isDeprecated, isGenerate, setAllNames, setAllNames, setAutocreate, setExtensionName, setGenerate, setName, setNamegetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, createItem, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getNonInitialAttributes, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplacegetImplementation, setTenantpublic static final String DEFAULTVALUE
public static final String DESCRIPTION
public static final String CODE
public static final String XMLDEFINITION
public String getCode()
public Object getDefaultValue()
public Object getDefaultValue(SessionContext ctx)
public void setDefaultValue(Object value) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic void setDefaultValue(SessionContext ctx, Object value) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic abstract String toString(SessionContext ctx, Object value) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic abstract Object parseValue(SessionContext ctx, String value) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic abstract boolean isAssignableFrom(Type type)
This is true if this type equals or is supertype of the given type.
type - the type to be checked.public abstract boolean isInstance(Object o)
This is true if this type is type of this object or is supertype of the object's type.
o - the object to be checked.public String getDescription()
public String getDescription(SessionContext ctx)
public void setDescription(String description)
description - the new description.public void setDescription(SessionContext ctx, String description)
ctx - the session context defining the language to set the description fordescription - the new description.public Map getAllDescriptions()
public Map getAllDescriptions(SessionContext ctx)
public void setAllDescriptions(Map descriptions)
descriptions - all new names as language-to-description mappublic void setAllDescriptions(SessionContext ctx, Map descriptions)
descriptions - all new descriptions as language-to-description mappublic String toString()
public abstract String getXMLDefinition()
items.xml .protected Type.TypeImpl getTypeImpl()
public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class Itemo - which will be compared to this item.Copyright © 2017 SAP SE. All Rights Reserved.