org.eclipse.higgins.idas.impl
Class BasicValueBase64Binary

Package class diagram package BasicValueBase64Binary
java.lang.Object
  extended by org.eclipse.higgins.idas.impl.AbstractSimpleValue
      extended by org.eclipse.higgins.idas.impl.BasicValueBase64Binary
All Implemented Interfaces:
IPropertyValue, ISimpleValue

public class BasicValueBase64Binary
extends AbstractSimpleValue
implements ISimpleValue

Currently uses sun.misc.BASE64Encoder which is not officially supported. This will be replaced as soon as licensing of other source is approved.


Constructor Summary
BasicValueBase64Binary(byte[] bytes)
          Uses the specified byte array to build this object.
 
Method Summary
 String getCanonical()
          TODO: make sure this meets the canonical rules for xsd:base64Binary
 Object getData()
          Returns the ByteBuffer backing this value.
 String getLexical()
          Default implementation of getLexical calls toString() on the backing datatype.
 
Methods inherited from class org.eclipse.higgins.idas.impl.AbstractSimpleValue
isSimple
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.idas.IPropertyValue
isSimple
 

Constructor Detail

BasicValueBase64Binary

public BasicValueBase64Binary(byte[] bytes)
Uses the specified byte array to build this object.

Parameters:
bytes - array of bytes used to back this object
Method Detail

getLexical

public String getLexical()
                  throws IdASException
Description copied from class: AbstractSimpleValue
Default implementation of getLexical calls toString() on the backing datatype.

Specified by:
getLexical in interface ISimpleValue
Overrides:
getLexical in class AbstractSimpleValue
Throws:
IdASException

getCanonical

public String getCanonical()
                    throws IdASException
TODO: make sure this meets the canonical rules for xsd:base64Binary

Specified by:
getCanonical in interface ISimpleValue
Overrides:
getCanonical in class AbstractSimpleValue
Throws:
IdASException

getData

public Object getData()
               throws IdASException
Returns the ByteBuffer backing this value.

Specified by:
getData in interface IPropertyValue
Specified by:
getData in interface ISimpleValue
Throws:
IdASException


Copyright © 2006 Novell Inc. All Rights Reserved.
This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

Contributors:
  Jim Sermersheim (Novell, Inc.) - initial API and implementation