Creates an {@link AssetLink} containing a {@link TextAsset} with the specified string.

@param text the text for the text asset.
@return a new {@link AssetLink}
339315
private static AssetLink createAssetLinkForText(String text) {
    AssetLink assetLink = new AssetLink();
    TextAsset textAsset = new TextAsset();
    textAsset.setAssetText(text);
    assetLink.setAsset(textAsset);
    return assetLink;
  }
1331602
public void setText(final String text) {
        this.text.setText(text);
        this.text.setFont(Font.font(this.text.getFont().getFamily(), FontWeight.BOLD, size / 2));
        stack.requestLayout();
    }
89041
public synchronized AnimatedLabel addFrame(String text) {
        String[] lines = splitIntoMultipleLines(text);
        frames.add(lines);
        ensurePreferredSize(lines);
        return this;
    }
1000816
public static String readTextFile(Context context, String asset) {
        try {
            InputStream inputStream = context.getAssets().open(asset);
            return org.gearvrf.utility.TextFile.readTextFile(inputStream);
        } catch (FileNotFoundException f) {
            Log.w(TAG, "readTextFile(): asset file '%s' doesn't exist", asset);
        } catch (IOException e) {
            e.printStackTrace();
            Log.e(TAG, e, "readTextFile()");
        }
        return null;
    }
1230011
public static String toCell(String text)
	{
		return new StringBuilder("\"")
				.append(format(text))
				.append("\"").toString();
	}
86146
public void showTextKerned(String text) {
        if (state.fontDetails == null)
            throw new NullPointerException("Font and size must be set before writing any text");
        BaseFont bf = state.fontDetails.getBaseFont();
        if (bf.hasKernPairs())
            showText(getKernArray(text, bf));
        else
            showText(text);
    }
541425
public HintText withText(String text)
    {
        Hint hint = new Hint();
        hint.setTitle(title);
        hint.setText(text);
        return hint;
    }
940972
private boolean appendText(final String text, final StringBuilder sb) {
        if (sb != null) {
            if (text != null && text.indexOf(":annotation") < 0 && text.indexOf(":documentation") < 0) {
                sb.append(text);
                return true;
            }
        }
        return false;
    }
700782
public TextBuilder styledLink(final String text, final TextStyle ts, final Table table) {
        this.curParagraphBuilder.styledLink(text, ts, table);
        return this;
    }
221527
public T text(CharSequence text) {

        if (view instanceof TextView) {
            TextView tv = (TextView) view;
            tv.setText(text);
        }

        return self();
    }
1115872
public QRSCT text(String text) {
		if (text != null && text.length() <= 140) {
			this.reference = ""; //$NON-NLS-1$
			this.text = checkValidSigns(text);
			return this;
		}
		throw new IllegalArgumentException("supplied text [" + text //$NON-NLS-1$
				+ "] not valid: has to be not null and of max length 140"); //$NON-NLS-1$
	}
1143857
def _extract_links_from_asset_tags_in_text(self, text):
        
        # Extract asset tags from instructions text
        asset_tags_map = self._extract_asset_tags(text)
        ids = list(iterkeys(asset_tags_map))
        if not ids:
            return {}

        # asset tags contain asset names and ids. We need to make another
        # HTTP request to get asset URL.
        asset_urls = self._extract_asset_urls(ids)

        supplement_links = {}

        # Build supplement links, providing nice titles along the way
        for asset in asset_urls:
            title = clean_filename(
                asset_tags_map[asset['id']]['name'],
                self._unrestricted_filenames)
            extension = clean_filename(
                asset_tags_map[asset['id']]['extension'].strip(),
                self._unrestricted_filenames)
            url = asset['url'].strip()
            if extension not in supplement_links:
                supplement_links[extension] = []
            supplement_links[extension].append((url, title))

        return supplement_links
1191571
public T text(String text) throws IOException {
		if (text != null) {
			writer.write(text);
		}
		return (T) this;
	}
422064
public SelectStep text(String text) {
		return new SelectStep(element, text, SelectStep.OptionSelectorType.TEXT);
	}
1043711
public TextBuilder styledLink(final String text, final TextStyle ts, final URL url) {
        this.curParagraphBuilder.styledLink(text, ts, url);
        return this;
    }
749311
public static String urlEncode(final String text) {
        try {
            return URLEncoder.encode(text, StandardCharsets.UTF_8.name());
        } catch (final UnsupportedEncodingException e) {
            final String message = "Unable to encode text : " + text;
            throw new TechnicalException(message, e);
        }
    }
370138
public String encryptText(String text)
	throws Exception
	{
		return toByteText(this.encrypt(text.getBytes(IO.CHARSET)));

	}