Package org.refcodes.structure
Class PropertyImpl.PropertyBuilderImpl
- java.lang.Object
-
- org.refcodes.structure.RelationImpl<java.lang.String,java.lang.String>
-
- org.refcodes.structure.PropertyImpl
-
- org.refcodes.structure.PropertyImpl.PropertyBuilderImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.KeyAccessor<java.lang.String>
,org.refcodes.mixin.KeyAccessor.KeyBuilder<java.lang.String,java.lang.String>
,org.refcodes.mixin.KeyAccessor.KeyMutator<java.lang.String>
,org.refcodes.mixin.KeyAccessor.KeyProperty<java.lang.String>
,org.refcodes.mixin.ValueAccessor<java.lang.String>
,org.refcodes.mixin.ValueAccessor.ValueBuilder<java.lang.String,java.lang.String>
,org.refcodes.mixin.ValueAccessor.ValueMutator<java.lang.String>
,org.refcodes.mixin.ValueAccessor.ValueProperty<java.lang.String>
,Property
,Property.PropertyBuilder
,Relation<java.lang.String,java.lang.String>
,Relation.RelationBuilder<java.lang.String,java.lang.String>
- Enclosing class:
- PropertyImpl
public static class PropertyImpl.PropertyBuilderImpl extends PropertyImpl implements Property.PropertyBuilder
Implementation of theProperty.PropertyBuilder
interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends java.lang.Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends java.lang.Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Property
Property.PropertyBuilder
-
Nested classes/interfaces inherited from class org.refcodes.structure.PropertyImpl
PropertyImpl.PropertyBuilderImpl
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Relation
Relation.RelationBuilder<K,V>
-
Nested classes/interfaces inherited from class org.refcodes.structure.RelationImpl
RelationImpl.RelationBuilderImpl<K,V>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends java.lang.Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends java.lang.Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from class org.refcodes.structure.RelationImpl
_key, _value
-
-
Constructor Summary
Constructors Constructor Description PropertyBuilderImpl()
Use the builder methods or the bean attributes to set the key and the value.PropertyBuilderImpl(java.lang.String aTupel)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.PropertyBuilderImpl(java.lang.String aTupel, char aTupelDelimeter)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.PropertyBuilderImpl(java.lang.String aKey, java.lang.String aValue)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setKey(java.lang.String aKey)
Sets the key.void
setValue(java.lang.String aValue)
Sets the value.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.refcodes.structure.Property
toProperty
-
Methods inherited from interface org.refcodes.structure.Property.PropertyBuilder
withKey, withValue
-
Methods inherited from class org.refcodes.structure.RelationImpl
getKey, getValue
-
-
-
-
Constructor Detail
-
PropertyBuilderImpl
public PropertyBuilderImpl()
Use the builder methods or the bean attributes to set the key and the value.
-
PropertyBuilderImpl
public PropertyBuilderImpl(java.lang.String aTupel, char aTupelDelimeter)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.- Parameters:
aTupel
- A tupel is a key and a value with the assignment operator "=" inbetween, e.g. "a=5" (the key would be a, the value would be 5).aTupelDelimeter
- The delimiter to be used for dividing the key/value-pair.
-
PropertyBuilderImpl
public PropertyBuilderImpl(java.lang.String aKey, java.lang.String aValue)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.- Parameters:
aKey
- The according key to set.aValue
- The according value to set.
-
PropertyBuilderImpl
public PropertyBuilderImpl(java.lang.String aTupel)
Initializes thePropertyImpl.PropertyBuilderImpl
with the given values.- Parameters:
aTupel
- A tupel is a key and a value with the assignment operator "=" inbetween, e.g. "a=5" (the key would be a, the value would be 5).
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from class:RelationImpl
- Overrides:
toString
in classRelationImpl<java.lang.String,java.lang.String>
-
setKey
public void setKey(java.lang.String aKey)
Sets the key.- Specified by:
setKey
in interfaceorg.refcodes.mixin.KeyAccessor.KeyMutator<java.lang.String>
- Parameters:
aKey
- the new key
-
setValue
public void setValue(java.lang.String aValue)
Sets the value.- Specified by:
setValue
in interfaceorg.refcodes.mixin.ValueAccessor.ValueMutator<java.lang.String>
- Parameters:
aValue
- the new value
-
-