org.openmdx.generic1.jpa3.StringProperty Maven / Gradle / Ivy
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
package org.openmdx.generic1.jpa3;
/**
* Class StringProperty
*/
@SuppressWarnings("serial")
public class StringProperty extends org.openmdx.generic1.jpa3.Property
implements org.openmdx.generic1.cci2.StringProperty
{
/**
* Constructor
*/
public StringProperty(
){
// Implements Serializable
}
// ----------------------------------------------------------------------------
// Instance/AttributeGetSparseArray
// ----------------------------------------------------------------------------
/**
* Retrieves a SparseArray containing all the elements for the attribute stringValue
.
* @return A SparseArray containing all elements for this attribute.
*/
public org.w3c.cci2.SparseArray getStringValue(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return org.w3c.cci2.SortedMaps.asSparseArray(
new org.w3c.jpa3.AbstractObject.SlicedMap(slices) {
@Override
protected java.lang.String getValue(StringProperty$Slice slice) {
return slice.getStringValue();
}
@Override
protected void setValue(StringProperty$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setStringValue(value);
}
@Override
protected StringProperty$Slice newSlice(int index) {
return new StringProperty$Slice(StringProperty.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
stringValue_size = size;
}
@Override
public int size() {
return stringValue_size;
}
}
);
}
// ----------------------------------------------------------------------------
// Instance/AttributeSetSparseArray
// ----------------------------------------------------------------------------
/**
* Clears stringValue
and adds the given value(s).
*
* This method is equivalent to
* array.clear();
* array.putAll(stringValue);
*
* @param stringValue value(s) to be added to stringValue
*/
public void setStringValue(
java.util.Map stringValue
){
openmdxjdoSetArray(
getStringValue(),
stringValue
);
}
// ----------------------------------------------------------------------------
// Instance/End
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute stringValue
*/
int stringValue_size;
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
}