public class OwCMISBooleanTextFormat extends Format
OwCMISBooleanTextFormat.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Format.Field
Constructor and Description |
---|
OwCMISBooleanTextFormat()
Creates a BooleanFormat with default true/false formatting.
|
OwCMISBooleanTextFormat(String pattern_p)
Constructs a boolean format from a pattern.
|
OwCMISBooleanTextFormat(String trueString_p,
String falseString_p)
Creates a BooleanFormat.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(Object obj_p,
StringBuffer appendTo_p,
FieldPosition pos_p)
Formats a Boolean and appends the result to a StringBuffer.
|
Boolean |
parse(String text_p)
Parses text from the beginning of the given string to produce a boolean.
|
Boolean |
parseObject(String source_p,
ParsePosition pos_p)
Parses a string into a
Boolean . |
clone, format, formatToCharacterIterator, parseObject
public OwCMISBooleanTextFormat()
public OwCMISBooleanTextFormat(String trueString_p, String falseString_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
trueString_p
- A string representing true.falseString_p
- A string representing false.com.wewebu.ow.server.exceptions.OwInvalidOperationException
public OwCMISBooleanTextFormat(String pattern_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
pattern_p
- The pattern from which to construct.com.wewebu.ow.server.exceptions.OwInvalidOperationException
public StringBuffer format(Object obj_p, StringBuffer appendTo_p, FieldPosition pos_p)
public Boolean parseObject(String source_p, ParsePosition pos_p)
Boolean
. A string can be either a trueString
or a falseString (non-case sensitive).parseObject
in class Format
source_p
- The string from which to parse.pos_p
- Marks the end of the parsing, or 0 if the parsing failed.Boolean
for the parsed string.public Boolean parse(String text_p) throws ParseException
text_p
- A String that should be parsed from it's start.Boolean
parsed from the string.ParseException
- If the string cannot be parsed.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.