Package com.rosetta.model.lib.meta
Class Key.KeyBuilderImpl
java.lang.Object
com.rosetta.model.lib.meta.Key.KeyBuilderImpl
- All Implemented Interfaces:
Key,Key.KeyBuilder,RosettaModelObject,RosettaModelObjectBuilder
- Enclosing interface:
Key
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rosetta.model.lib.meta.Key
Key.KeyBuilder, Key.KeyBuilderImpl, Key.KeyImpl, Key.KeyMeta -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()booleangetScope()booleanhasData()inthashCode()merge(RosettaModelObjectBuilder other, BuilderMerger merger) prune()Recursively removes object that have no field set from the object tree i.e.setKeyValue(String keyValue) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.meta.Key.KeyBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Constructor Details
-
KeyBuilderImpl
public KeyBuilderImpl()
-
-
Method Details
-
build
- Specified by:
buildin interfaceKey- Specified by:
buildin interfaceRosettaModelObject
-
getScope
-
setScope
- Specified by:
setScopein interfaceKey.KeyBuilder
-
getKeyValue
- Specified by:
getKeyValuein interfaceKey
-
setKeyValue
- Specified by:
setKeyValuein interfaceKey.KeyBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfaceRosettaModelObjectBuilder- Returns:
- true if any of the primitive fields on this object are set or if any of its complex attributes have data
-
toBuilder
- Specified by:
toBuilderin interfaceKey- Specified by:
toBuilderin interfaceRosettaModelObject
-
prune
Description copied from interface:RosettaModelObjectBuilderRecursively removes object that have no field set from the object tree i.e. A { b->B{c=null}} will get reduced to A {b=null}- Specified by:
prunein interfaceRosettaModelObjectBuilder
-
merge
- Specified by:
mergein interfaceRosettaModelObjectBuilder
-
hashCode
public int hashCode() -
equals
-