congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ComplexPropertyContainer.removePropertiesByName
Code IndexAdd Tabnine to your IDE (free)

How to use
removePropertiesByName
method
in
org.apache.xmpbox.type.ComplexPropertyContainer

Best Java code snippets using org.apache.xmpbox.type.ComplexPropertyContainer.removePropertiesByName (Showing top 3 results out of 315)

origin: apache/pdfbox

/**
 * Add a property to the current structure
 * 
 * @param obj
 *            the property to add
 */
public final void addProperty(AbstractField obj)
{
  // https://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/cs6/XMPSpecificationPart1.pdf
  // "Each property name in an XMP packet shall be unique within that packet"
  // "Multiple values are represented using an XMP array value"
  // "The nested element's element content shall consist of zero or more rdf:li elements, 
  // one for each item in the array"
  // thus delete existing elements of a property, except for arrays ("li")
  if (!(this instanceof ArrayProperty))
  {
    container.removePropertiesByName(obj.getPropertyName());
  }
  container.addProperty(obj);
}
origin: org.apache.pdfbox/xmpbox

/**
 * Add a property to the current structure
 * 
 * @param obj
 *            the property to add
 */
public final void addProperty(AbstractField obj)
{
  // https://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/cs6/XMPSpecificationPart1.pdf
  // "Each property name in an XMP packet shall be unique within that packet"
  // "Multiple values are represented using an XMP array value"
  // "The nested element's element content shall consist of zero or more rdf:li elements, 
  // one for each item in the array"
  // thus delete existing elements of a property, except for arrays ("li")
  if (!(this instanceof ArrayProperty))
  {
    container.removePropertiesByName(obj.getPropertyName());
  }
  container.addProperty(obj);
}
origin: com.github.lafa.pdfbox/xmpbox

/**
 * Add a property to the current structure
 * 
 * @param obj
 *            the property to add
 */
public final void addProperty(AbstractField obj)
{
  // https://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/cs6/XMPSpecificationPart1.pdf
  // "Each property name in an XMP packet shall be unique within that packet"
  // "Multiple values are represented using an XMP array value"
  // "The nested element's element content shall consist of zero or more rdf:li elements, 
  // one for each item in the array"
  // thus delete existing elements of a property, except for arrays ("li")
  if (!(this instanceof ArrayProperty))
  {
    container.removePropertiesByName(obj.getPropertyName());
  }
  container.addProperty(obj);
}
org.apache.xmpbox.typeComplexPropertyContainerremovePropertiesByName

Javadoc

Remove all properties with a specified LocalName.

Popular methods of ComplexPropertyContainer

  • getAllProperties
    Return all children associated to this property
  • <init>
    Complex Property type constructor (namespaceURI is given)
  • addProperty
    Add a property to the current structure
  • containsProperty
    Check if a XMPFieldObject is in the complex property
  • getFirstEquivalentProperty
    Give the first property found in this container with type and localname expected
  • getPropertiesByLocalName
    Return all properties with this specified localName.
  • isSameProperty
    Check if two properties are equal.
  • removeProperty
    Remove a property

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ImageIO (javax.imageio)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now