Package cookxml.core

Examples of cookxml.core.IdReference


public class IdReferenceCreator implements Creator
{
  public Object create (String parentNS, String parentTag, Element elm, Object parentObj, DecodeEngine decodeEngine)
  {
    Attr attr = elm.getAttributeNode ("ctor");
    IdReference idref = attr == null ? null : decodeEngine.getCookXml ().getId (attr.getNodeValue ());
    if (idref != null)
    {
      decodeEngine.setCurrentTag (idref.tag);
      decodeEngine.addCurrentSkipList (attr);
      return idref.object;
View Full Code Here


    {
      if (ClassUtils.NULL_VAR.equals (value))
        return null;
      if (value.startsWith (IDREF_PREFIX))
      {
        IdReference idref = decodeEngine.getCookXml ().getId (value.substring (IDREF_PREFIX.length ()));
        return idref.object;
      }
      else if (value.startsWith (ObjectConverter.VARREF_PREFIX))
        return decodeEngine.getVariable (value.substring (VARREF_PREFIX.length ()));
    }
View Full Code Here

TOP

Related Classes of cookxml.core.IdReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.