Package com.rosetta.model.lib.meta
Interface Key
- All Superinterfaces:
RosettaModelObject
- All Known Subinterfaces:
Key.KeyBuilder
- All Known Implementing Classes:
Key.KeyBuilderImpl,Key.KeyImpl
@RosettaDataType(value="Key",
builder=KeyBuilderImpl.class)
public interface Key
extends RosettaModelObject
- Author:
- TomForwood This class represents a value that can be references elsewhere to link to the object the key is associated with The keyValue is required to be unique within the scope defined by "scope" Scope can be - global - the key must be universally unique - document - the key must be unique in this document - the name of the rosetta class e.g. TradeableProduct- the object bearing this key is inside a TradeableProduct and the key is only unique inside that TradeableProduct
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()static Key.KeyBuilderbuilder()getScope()default Class<? extends RosettaModelObject> getType()default RosettaMetaData<? extends RosettaModelObject> metaData()default voidprocess(RosettaPath path, Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
meta
-
-
Method Details
-
getScope
String getScope() -
getKeyValue
String getKeyValue() -
build
Key build()- Specified by:
buildin interfaceRosettaModelObject
-
toBuilder
Key.KeyBuilder toBuilder()- Specified by:
toBuilderin interfaceRosettaModelObject
-
metaData
- Specified by:
metaDatain interfaceRosettaModelObject- Returns:
- The MetaData
RosettaMetaDataobject for this class providing access to things like validation
-
getType
- Specified by:
getTypein interfaceRosettaModelObject
-
process
- Specified by:
processin interfaceRosettaModelObject
-
builder
-