public class AnsiPropertySource extends PropertySource<AnsiElement>
PropertyResolver
for AnsiStyle
, AnsiColor
and
AnsiBackground
elements. Supports properties of the form AnsiStyle.BOLD
, AnsiColor.RED
or AnsiBackground.GREEN
. Also supports a prefix of
Ansi.
which is an aggregation of everything (with background colors prefixed
BG_
).PropertySource.StubPropertySource
logger, name, source
Constructor and Description |
---|
AnsiPropertySource(String name,
boolean encode)
Create a new
AnsiPropertySource instance. |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(String name) |
containsProperty, equals, getName, getSource, hashCode, named, toString
public AnsiPropertySource(String name, boolean encode)
AnsiPropertySource
instance.name
- the name of the property sourceencode
- if the output should be encodedpublic Object getProperty(String name)
getProperty
in class PropertySource<AnsiElement>
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.