|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
com.wewebu.ow.server.ecmimpl.cmis.util.OwCMISBooleanTextFormat
public class OwCMISBooleanTextFormat
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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.Format |
|---|
Format.Field |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.text.Format |
|---|
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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| Method Detail |
|---|
public StringBuffer format(Object obj_p,
StringBuffer appendTo_p,
FieldPosition pos_p)
format in class Formatobj_p - The object to format.appendTo_p - The StringBuffer to which the formatted string will be appended.pos_p - A FieldPosition param (not used in this class).
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 Formatsource_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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||