NAME

RDF::Base::Literal::String

DESCRIPTION

Represents a String RDF::Base::Literal.

Constructors

These can be called with the class name or any List object.

new

new_from_db

Values from valbin those valtype is NOT a subclass of text_large, will not be treated as text and thus not converted from UTF8 encoding.

parse

  $class->parse( \$value, \%args )

For parsing any type of input. Expecially as given by html forms.

Parsing an existing literal object may MODIFY it''s content and valtype

Supported args are: valtype coltype arclim

Will use RDF::Base::Resource/get_by_anything for lists and queries.

The valtype may be given for cases there the class handles several valtypes.

Accessors

desig

  $n->desig()

The designation of the literal, meant for human admins

syskey

Returns a unique predictable id representing this object

literal

  $n->literal()

The literal value that this object represents.

cmp_string

cmp_numeric

loc

  $lit->loc

  $lit->loc(@args)

Uses the args in Para::Frame::L10N/compile.

Returns: the value as a plain string

value

aka literal

plain

Make it a plain value. Safer than using ->literal, since it also works for Undef objects.

clean

Returns the clean version of the value as a Literal obj

clean_plain

Returns the clean version of the value as a plain string

begins

  $string->begins( $substr )

Returns true if the string begins with $substr.

this_valtype

wuirc

  $class->wuirc( $subj, $pred, \%args )

Display field for updating a string property of a node

Supported args are:

  proplim
  arclim
  default_create
  unique_arcs_prio
  range (valtype)
  range_scof
  rows
  cols
  size
  inputtype
  maxlength
  newsubj
  maxw
  maxh
  label
  tdlabel
  separator
  id
  label_class
  disabled
  image_url
  class
  default_value
  vnode
  multi

document newsubj!

the query param "arc___pred_$pred__subj_$nid" can be used for default new value

the query param "arc___pred_$pred" can be used for default new value

wul

Display field for updating a string property of a node

var node must be defined

the query param "arc___pred_$pred__subj_$nid" can be used for default new value

the query param "arc___pred_$pred" can be used for default new value

action_icon

as_html

default_valtype

SEE ALSO

RDF::Base::Literal, RDF::Base::Resource, RDF::Base::Arc, RDF::Base::Pred, RDF::Base::Search