/******************************************************************************* * ============LICENSE_START==================================================== * * org.onap.aaf * * =========================================================================== * * Copyright © 2017 AT&T Intellectual Property. All rights reserved. * * =========================================================================== * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * ============LICENSE_END==================================================== * * * * ECOMP is a trademark and service mark of AT&T Intellectual Property. * * ******************************************************************************/ package com.att.inno.env; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; /** *
*
* It stores either Object (defined by Generic {@literal
*
* On asking for Object of type {@literal
*
* On asking for String, it will respond with the String
* if it exists, or marshal the String and pass the result back.
*
* the "options" available on several functions control the output of this particular call. When
* blank, they will default to the DataFactory defaults. When present, they override this
* particular call.
* The available options are "pretty" (for XML and JSON) and "fragment" (XML only concept), which drops
* the "" header so you can create larger XML documents from the output.
*
*
* @param
*
* However, use the Env the Data Object was created with.
*
* @return T
* @throws APIException
*/
public T asObject() throws APIException;
/**
* Set a particular option on an existing Out
*
* if int is negative, it should remove the option
* @param option
*/
public Data