PRE> public java.lang.String getFormattedValue()
get formatted value of the field

Returns:
String value by default returns the same value

toString

public java.lang.String toString()
convert to string

Overrides:
toString in class java.lang.Object

saveFragmentAsElement

public void saveFragmentAsElement(org.xml.sax.ContentHandler handler,
                                  org.xml.sax.ext.LexicalHandler lexHandler,
                                  boolean formatted)
                           throws org.xml.sax.SAXException
save the data of this fragment to XML as a separate element

org.xml.sax.SAXException

getAttributesForElement

protected org.xml.sax.Attributes getAttributesForElement()
                                                  throws org.xml.sax.SAXException
get the attributes when saving this fragment to XML as a separate element by default returns empty attribute

Returns:
Attributes
org.xml.sax.SAXException

populateDataForElement

protected void populateDataForElement(org.xml.sax.ContentHandler handler,
                                      org.xml.sax.ext.LexicalHandler lexHandler,
                                      boolean formatted)
                               throws org.xml.sax.SAXException
populate data for element

org.xml.sax.SAXException

saveFragmentAsAttribute

public void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr,
                                    boolean formatted)
                             throws org.xml.sax.SAXException
save the data of this fragment to XML as an attribute of the container element

org.xml.sax.SAXException

isElement

public boolean isElement()
Should it be save as an element or an atrribute

Returns:
boolean

getXMLPresentmentType

protected abstract int getXMLPresentmentType()
Get XML Presentment Type

Returns:
String

CredibleXML
v1.5

Submit a bug or feature

CredibleXML is a trademark or registered trademark of Crediware L.L.C. in the US and other countries.
Copyright 2001-2002 Crediware L.L.C. All Rights Reserved.
DataFieldBinary (CredibleXML 1.5 Base Framework Specification)
CredibleXML
v1.5

com.crediware.crediblexml.coredef
Class DataFieldBinary

java.lang.Object
  |
  +--com.crediware.crediblexml.coredef.DataElement
        |
        +--com.crediware.crediblexml.coredef.DataField
              |
              +--com.crediware.crediblexml.coredef.DataLayoutField
                    |
                    +--com.crediware.crediblexml.coredef.DataFieldBinary
All Implemented Interfaces:
IXMLPersistable

public class DataFieldBinary
extends DataLayoutField

Copyright (c) 2001-2002 Crediware LLC. Purpose: This class incapsulate binary field behavior for corresponding document element defined in the GUI. Returned by data accessor method generated by GUI tool.


Constructor Summary
DataFieldBinary(DataSegment container, MetaData metaData, IExternalDataProvider dataProvider, java.lang.String value)
          constructor creates data element with specified parameters
 
Method Summary
protected  org.xml.sax.Attributes getAttributesForElement()
          get the attributes when saving this fragment to XML as a separate element by default returns empty attribute
 java.lang.String getBase64Value()
          get value of the field encoded as Base64
protected  int getBinaryType()
          Get binary type
 java.lang.String getHexValue()
          get value of the field encoded as Hex
 java.lang.String getLexicalValue(boolean formatted)
          get lexical value of the field: how it'll be represented in XML
protected  int getXMLPresentmentType()
          Get XML Presentment Type (always element)
 void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr, boolean formatted)
          save the content to XML
 
Methods inherited from class com.crediware.crediblexml.coredef.DataLayoutField
getFieldMetaData, isVisibleInXML
 
Methods inherited from class com.crediware.crediblexml.coredef.DataField
getFormattedValue, getValue, isElement, populateDataForElement, saveFragmentAsElement, setValue, toString
 
Methods inherited from class com.crediware.crediblexml.coredef.DataElement
getDataProvider, getEmptyAttribute, getMetaData, getName, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataFieldBinary

public DataFieldBinary(DataSegment container,
                       MetaData metaData,
                       IExternalDataProvider dataProvider,
                       java.lang.String value)
constructor creates data element with specified parameters

Method Detail

getBase64Value

public java.lang.String getBase64Value()
get value of the field encoded as Base64

Returns:
String value

getHexValue

public java.lang.String getHexValue()
get value of the field encoded as Hex

Returns:
String value

getLexicalValue

public java.lang.String getLexicalValue(boolean formatted)
get lexical value of the field: how it'll be represented in XML

Overrides:
getLexicalValue</