input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public string get pdfversion value abstract field tmp get property local prefix sep pdf version if tmp null if tmp instanceof text type return text type tmp get string value return null
|
give the pdfversion property value string
|
public string get namespace urivalue return get value type property pdfatypeprefixsep ns uri
|
return the current ns uri in a string
|
public text type get producer abstract field tmp get property local prefix sep producer if tmp null if tmp instanceof text type return text type tmp return null
|
give the producer property
|
public string get producer value abstract field tmp get property local prefix sep producer if tmp null if tmp instanceof text type return text type tmp get string value return null
|
give the producer property value string
|
public string get prefix value return get value type property pdfatypeprefixsep prefix
|
return the current prefix in a string
|
public complex property get type return complex property get property local prefix sep type
|
return the bag dc type
|
public string get description value return get value type property pdfatypeprefixsep description
|
return the description of this value type in a string
|
private text type get type property string qualified name iterator abstract field it content get all properties iterator abstract field tmp while it has next tmp it next if tmp get qualified name equals qualified name return text type tmp return null
|
get value type property value as a text type
|
public text type get type name return get type property pdfatypeprefixsep type
|
return the property corresponding to the type name definition
|
public text type get namespace uri return get type property pdfatypeprefixsep ns uri
|
return the property corresponding to the type namespace uri definition
|
public text type get prefix return get type property pdfatypeprefixsep prefix
|
return the property corresponding to the type prefix definition
|
public text type get description return get type property pdfatypeprefixsep description
|
return the property corresponding to the type description definition
|
public calendar get date property value as simple string simple name return this get date property value local prefix sep simple name
|
get a simple date property value on the schema using the current prefix
|
public void add field pdfafield description field fields add field description field
|
add a structured field to this value type
|
public void add field description pdfafield description obj if contains field description obj remove field description obj fields add obj content append child obj content get element
|
add a pdf a field description to the current structure
|
public boolean contains field description pdfafield description field iterator pdfafield description it get all field description pdfafield description tmp while it has next tmp it next if is same field description tmp field return true return false
|
check if a specified pdf a field description is embedded
|
public calendar get date property value string qualified name abstract field prop get abstract property qualified name if prop null if prop instanceof date type return date type prop get value else throw new illegal argument exception property asked is not a date property return null
|
get the value of the property as a date
|
public void remove field description pdfafield description field if contains field description field fields remove field content remove child field content get element
|
remove a pdf a field description
|
public string get xpacket bytes return xpacket bytes
|
get xpacket bytes
|
public string get xpacket encoding return xpacket encoding
|
get xpacket encoding
|
public string get xpacket begin return xpacket begin
|
get xpacket begin
|
public void set date property date type date set specified simple type property date
|
set a new date property
|
public string get xpacket id return xpacket id
|
get xpacket id
|
public void add schema xmpschema schema schemas add schema schema
|
add schema given to this metadata representation
|
public void set end xpacket string data xpacket end data data
|
set special xpacket end pi
|
public void set date property value as simple string simple name calendar date this set date property value local prefix sep simple name date
|
set a simple date property on the schema using the current prefix
|
public element get container element return schemas get element
|
get element associated to all schemas contained in this metadata
|
public document get futur owner return xmp document
|
give the dom document to build metadata content
|
public xmpschema get schema string ns uri iterator xmpschema it get all schemas iterator xmpschema tmp while it has next tmp it next if tmp get namespace value equals ns uri return tmp return null
|
return the schema corresponding to this ns uri be careful typically
|
public void set date property value string qualified name calendar date set specified simple type property date type class qualified name date
|
set the value of the property as a date
|
public xmpschema create and add default schema string ns prefix string ns uri xmpschema schem new xmpschema this ns prefix ns uri schem set about as simple add schema schem return schem
|
set a unspecialized schema
|
public pdfaextension schema create and add pdfaextension schema with default ns pdfaextension schema pdf aext new pdfaextension schema this pdf aext set about as simple add schema pdf aext return pdf aext
|
create and add a default pdfa extension schema to this metadata this
|
public xmprights management schema create and add xmprights management schema xmprights management schema rights new xmprights management schema this rights set about as simple add schema rights return rights
|
create and add a default xmprights schema to this metadata this method
|
public boolean type get boolean property string qualified name abstract field prop get abstract property qualified name if prop null if prop instanceof boolean type return boolean type prop else throw new illegal argument exception property asked is not a boolean property return null
|
get a boolean type property with its name
|
public pdfaextension schema get pdfextension schema return pdfaextension schema get schema pdfaextension schema pdfaextensionuri
|
get the pdfa extension schema this method return null if not found
|
public pdfaidentification schema create and add pfaidentification schema pdfaidentification schema pdf aid new pdfaidentification schema this pdf aid set about as simple add schema pdf aid return pdf aid
|
create and add a default pdfa identification schema to this metadata this
|
public boolean get boolean property value as simple string simple name return this get boolean property value local prefix sep simple name
|
get a simple boolean property value on the schema using the current
|
public pdfaidentification schema get pdfidentification schema return pdfaidentification schema get schema pdfaidentification schema iduri
|
get the pdfa identification schema this method return null if not found
|
public dublin core schema create and add dublin core schema dublin core schema dc new dublin core schema this dc set about as simple add schema dc return dc
|
create and add a default dublin core schema to this metadata this method
|
public dublin core schema get dublin core schema return dublin core schema get schema dublin core schema dcuri
|
get the dublin core schema this method return null if not found
|
public xmprights management schema get xmprights management schema return xmprights management schema get schema xmprights management schema xmprightsuri
|
get the xmprights schema this method return null if not found
|
public boolean get boolean property value string qualified name abstract field prop get abstract property qualified name if prop null if prop instanceof boolean type return boolean type prop get value else throw new illegal argument exception property asked is not a boolean property return null if property not exist this method give the property value so treat this return in this way if you want to use this value like a condition you must check this return before return null
|
get the value of the property as a boolean
|
public xmpbasic schema get xmpbasic schema return xmpbasic schema get schema xmpbasic schema xmpbasicuri
|
get the xmp basic schema this method return null if not found
|
public xmpmedia management schema create and add xmpmedia management schema xmpmedia management schema xmp mm new xmpmedia management schema this xmp mm set about as simple add schema xmp mm return xmp mm
|
create and add a xmp media management schema to this metadata this method
|
public void set boolean property boolean type bool set specified simple type property bool
|
set a boolean type property
|
public xmpmedia management schema get xmpmedia management schema return xmpmedia management schema get schema xmpmedia management schema xmpmmuri
|
get the xmp media management schema this method return null if not found
|
public adobe pdfschema create and add adobe pdfschema adobe pdfschema pdf new adobe pdfschema this pdf set about as simple add schema pdf return pdf
|
create and add an adobe pdf schema to this metadata this method return
|
public boolean is good type object value return value instanceof string
|
check if the value can be treated
|
public void set value object value if is good type value throw new illegal argument exception value given is not allowed for the text type value else obj value string value element set text content string value
|
set the property value
|
public string get string value return element get text content
|
return the property value
|
public adobe pdfschema get adobe pdfschema return adobe pdfschema get schema adobe pdfschema pdfuri
|
get the adobe pdf schema this method return null if not found
|
public void add property abstract field obj if contains property obj remove property obj properties add obj comments represents clues to use same property at more than one place but it create problem to find and erase cloned element node cloned obj get element clone node true parent adopt node cloned element append child obj get element element append child cloned
|
add a property to the current structure
|
public boolean is same property abstract field prop1 abstract field prop2 if prop1 get class equals prop2 get class prop1 get qualified name equals prop2 get qualified name if prop1 get element get text content equals prop2 get element get text content return true return false
|
check if two property are similar
|
public void add schema xmpschema obj if contains schema obj remove schema obj schemas add obj element append child obj get element
|
add a schema to the current structure
|
public boolean contains property abstract field property iterator abstract field it get all properties iterator abstract field tmp while it has next tmp it next if is same property tmp property return true return false
|
check if a xmpfield object is in the complex property
|
public void remove property abstract field property if contains property property properties remove property element remove child property get element
|
remove a property
|
public void set boolean property value as simple string simple name boolean bool this set boolean property value local prefix sep simple name bool
|
set a simple boolean property on the schema using the current prefix
|
public boolean is same schema xmpschema prop1 xmpschema prop2 if prop1 get class equals prop2 get class if prop1 get prefix equals prop2 get prefix return true return false
|
check if two schemas are similar
|
public boolean contains schema xmpschema schema iterator xmpschema it get all schemas xmpschema tmp while it has next tmp it next if is same schema tmp schema return true return false
|
check if a specified schema is embedded
|
public string get img abstract field abs prop get first equivalent property image text type class if abs prop null return text type abs prop get string value return null
|
get the img data
|
public void remove schema xmpschema schema if contains schema schema schemas remove schema element remove child schema get element
|
remove a schema
|
public void set img string prefix string name string image this add property new text type metadata prefix name image
|
set image data
|
public float get value return float obj value
|
return the property value
|
public boolean is good type object value if value instanceof float return true else if value instanceof string try float parse float string value return true catch number format exception e return false return false
|
check if the value can be treated
|
public void set value object value if is good type value throw new illegal argument exception value given is not allowed for the real type else if string object if value instanceof string set value from string string value else if real float set value from float float value
|
set the property value
|
public void set boolean property value string qualified name boolean bool set specified simple type property boolean type class qualified name bool
|
set the value of the property as a boolean
|
private void set value from string string value set value from float float parse float value
|
set the value from a string
|
public string get prefix if prefix null if prefix equals return null return prefix return null
|
get prefix defined for this attribute
|
public boolean is good type object value if value instanceof boolean return true else if value instanceof string return value equals true value equals false return false
|
check if object value type is compatible with this property type
|
public boolean get value return boolean obj value
|
return the property value
|
public void set value object value if is good type value throw new illegal argument exception value given is not allowed for the boolean type else if string object if value instanceof string set value from string string value else if boolean set value from bool boolean value
|
set value of this property boolean type object accept string value or a
|
private void set value from bool boolean value obj value value if value element set text content true else element set text content false
|
set property value
|
public complex property container get container return container
|
return the container of this array
|
public void set local name string lname local name lname
|
set the local name of this attribute
|
private void set value from string string value if value equals true set value from bool true else set value from bool false
|
set the value of this property
|
public boolean is same property abstract field prop2 if this get qualified name equals prop2 get qualified name if this get element get text content equals prop2 get element get text content return true return false
|
check if this complex property equals to another
|
public string get namespace return ns uri
|
get the namespace uri of this attribute
|
public int get value return integer obj value
|
return the property value
|
public void set ns uri string ns uri this ns uri ns uri
|
set the namespace uri of this attribute
|
private void set value from int int value obj value value element set text content value
|
set property value
|
public string get qualified name if prefix null return local name if prefix equals return local name return prefix local name
|
get the attribute qualified name prefix local name
|
public boolean is good type object value if value instanceof integer return true else if value instanceof string try integer parse int string value return true catch number format exception e return false return false
|
check if the value can be treated
|
public void set value object value if is good type value throw new illegal argument exception value given is not allowed for the integer type else if string object if value instanceof string set value from string string value else if integer set value from int integer value
|
set the property value
|
private void set value from string string value set value from int integer parse int value
|
set the value from a string
|
public integer type get integer property string qualified name abstract field prop get abstract property qualified name if prop null if prop instanceof integer type return integer type prop else throw new illegal argument exception property asked is not an integer property return null
|
get the integer property with its name
|
private void set value from calendar calendar value obj value value element set text content date converter to iso8601 value
|
set property value
|
public calendar get value return calendar obj value
|
return the property value
|
public pdfafield description create pdfafield description xmpmetadata metadata pdfafield description field desc new pdfafield description metadata field desc set name value name field desc set value type value value type field desc set description value description return field desc
|
create a pdfafield description which can be included in
|
public boolean is good type object value if value instanceof calendar return true else if value instanceof string try date converter to calendar string value return true catch ioexception e return false return false
|
check if the value has a type which can be understood
|
public void set value object value if is good type value throw new illegal argument exception value given is not allowed for the date type else if string object if value instanceof string set value from string string value else if calendar set value from calendar calendar value
|
set value of this property
|
public string get namespace return namespace uri
|
get the namespace uri of this entity
|
private void set value from string string value try set value from calendar date converter to calendar string value catch ioexception e should never happen string has been checked before throw new illegal argument exception e get cause
|
set the property value with a string
|
public string get qualified name return prefix property name
|
get the qualified name of this entity prefix local name
|
public void set attribute attribute value if attributes contains key value get qualified name if same name in element attribute will be replaced attributes remove value get qualified name if value get namespace null attributes put value get qualified name value element set attribute value get qualified name value get value else attributes put value get qualified name value element set attribute ns value get namespace value get qualified name value get value
|
set a new attribute for this entity
|
public boolean contains attribute string qualified name return attributes contains key qualified name
|
check if an attribute is declared for this entity
|
public attribute get attribute string qualified name return attributes get qualified name
|
get an attribute with its name in this entity
|
public integer get integer property value as simple string simple name return this get integer property value local prefix sep simple name
|
get a simple integer property value on the schema using the current
|
public void remove attribute string qualified name if contains attribute qualified name element remove attribute qualified name attributes remove qualified name
|
remove an attribute of this entity
|
public void to xml output stream os xstream to xml v types os
|
save as xml data all information defined before to the output stream
|
public string get concerned namespace return namespace
|
give the ns uri associated to this property description
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.