view Lib/IMPL/DOM/Schema/InflateFactory.pm @ 148:e6447ad85cb4

DOM objects now have a schema and schemaSource properties RegExp now can launder data Improved post to DOM transformation (multiple values a now supported) Added new axes to navigation queries: ancestor and descendant minor changes and bug fixes
author wizard
date Mon, 16 Aug 2010 08:26:44 +0400
parents 196bf443b5e1
children d1676be8afcc
line wrap: on
line source

package IMPL::DOM::Schema::InflateFactory;
use strict;

require IMPL::Exception;
require IMPL::Object::Factory;

sub new {
	my ($self,$value) = @_;
	
	if ($value =~ /^(\w+(?:::\w+)*)(?:\.(\w+))?$/) {
		return IMPL::Object::Factory->new($1,undef,$2);	
	} else {
		die new IMPL::InvalidArgumentException("Expected value in the format PACKAGE::NAME.method_name",$value);
	}
}

1;