com.wewebu.ow.server.ecmimpl.cmis.propertyclasses
Class OwCMISNativeFormat

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwCMISNativeFormat
All Implemented Interfaces:
com.wewebu.ow.server.field.OwFormat

public class OwCMISNativeFormat
extends Object
implements com.wewebu.ow.server.field.OwFormat

OwCMISNativeFormat.

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


Constructor Summary
OwCMISNativeFormat(Format textFormat_p, Class<?> valueClass_p)
           
OwCMISNativeFormat(Format textFormat_p, Class<?> valueClass_p, String arraySeparatorRegexp_p)
           
 
Method Summary
 boolean canValidate()
           
 Format getTextFormat(int fieldProviderType_p)
           
 boolean ignoreDate()
           
 boolean ignoreTime()
           
 Object parse(String text_p, boolean asArray_p)
           
protected  Object parseSingleString(String valueString_p)
           
protected  String[] splitArray(String arrayText_p)
           
 String validate(int fieldProviderType_p, Object object_p, Locale locale_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISNativeFormat

public OwCMISNativeFormat(Format textFormat_p,
                          Class<?> valueClass_p)

OwCMISNativeFormat

public OwCMISNativeFormat(Format textFormat_p,
                          Class<?> valueClass_p,
                          String arraySeparatorRegexp_p)
Method Detail

canValidate

public boolean canValidate()
Specified by:
canValidate in interface com.wewebu.ow.server.field.OwFormat

getTextFormat

public Format getTextFormat(int fieldProviderType_p)
Specified by:
getTextFormat in interface com.wewebu.ow.server.field.OwFormat

ignoreDate

public boolean ignoreDate()
Specified by:
ignoreDate in interface com.wewebu.ow.server.field.OwFormat

ignoreTime

public boolean ignoreTime()
Specified by:
ignoreTime in interface com.wewebu.ow.server.field.OwFormat

validate

public String validate(int fieldProviderType_p,
                       Object object_p,
                       Locale locale_p)
                throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Specified by:
validate in interface com.wewebu.ow.server.field.OwFormat
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

splitArray

protected String[] splitArray(String arrayText_p)
                       throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

parseSingleString

protected Object parseSingleString(String valueString_p)
                            throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

parse

public Object parse(String text_p,
                    boolean asArray_p)
             throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.