Beispiel #1
0
    public StringType createBuffer(StringType obj, StringType attribute)
    {
        OptionalDesc description = new OptionalDesc();

        // For Quantity
        StringType _quantity = StringType.createBuffer(Quantative.toString(this.quantity), new StringType("Quantity"));

        obj = StringType.stringByAppend(obj, _quantity);

        // For Constrains
        StringType _constrs = this.constrs.createBuffer(ConstraintOnModel.toString(constrs), new StringType("Constraints"));

        obj = StringType.stringByAppend(obj, _constrs);

        // For Tag
        StringType _tag = StringType.createBuffer(tag, new StringType("Tag"));

        obj = StringType.stringByAppend(obj, _tag);

        // For StoreOption
        StringType _storeOption = StringType.createBuffer(StoreOptional.toString(storeOption), new StringType("StoreOption"));

        obj = StringType.stringByAppend(obj, _storeOption);

        // For Name
        StringType _name = StringType.createBuffer(name, new StringType("Name"));

        obj = StringType.stringByAppend(obj, _name);

        obj = base.createBuffer(obj, attribute);
        return(obj);
    }
Beispiel #2
0
        public Model prepareSubModel(StringType obj, Quantative quantative)
        {
            Model _model = new Model();

            _model.entity     = obj;
            _model.occurences = quantative;
            return(_model);
        }
Beispiel #3
0
 public static Quantative getInstance()
 {
     if (quantative == null)
     {
         quantative = new Quantative();
     }
     return(quantative);
 }