com.ihr.xbrl.pojo

## Class XMLFragment

- java.lang.Object
- - com.ihr.xbrl.pojo.XMLNode
  - - com.ihr.xbrl.pojo.XMLFragment

- All Implemented Interfaces:
    HasId, java.io.Serializable
  Direct Known Subclasses:
    XBRLConcept, XBRLDocument, XBRLDocumentation, XBRLExtendedLink, XBRLFact, XBRLImport, XBRLRelationship, XBRLResource

      public class XMLFragment
      extends XMLNode

  The Class XMLFragment.
  Author:
    Ignacio
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XMLFragment()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `addAttribute(XMLAttribute att)` Adds the attribute.
    `boolean` | `addChildren(XMLFragment child)` Adds the children.
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.Set<XMLAttribute>` | `getAttributes()` Gets the attributes.
    `java.util.Collection<XMLFragment>` | `getChildren()` Gets the children.
    `java.util.Collection<Namespace>` | `getNamespaces()` Gets the namespaces.
    `int` | `hashCode()` This is the java hashCode method.
    `boolean` | `removeAttribute(XMLAttribute att)` Removes the attribute.
    `boolean` | `removeChildren(XMLFragment child)` Removes the children.
    `void` | `setHash(java.lang.Integer value)` Method used by hibernate to set the value.
    `void` | `setNamespaces(java.util.Collection<Namespace> namespaces)` Sets the namespaces.

    - ### Methods inherited from class com.ihr.xbrl.pojo.XMLNode

      `getId, getName, getValue, setHash, setId, setName, setValue`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XMLFragment

          public XMLFragment()

  - ### Method Detail

    - #### getChildren

          public java.util.Collection<XMLFragment> getChildren()

      Gets the children.
      Returns:
        the children

    - #### addChildren

          public boolean addChildren(XMLFragment child)

      Adds the children.
      Parameters:
        `child` - the child
      Returns:
        true, if successful

    - #### removeChildren

          public boolean removeChildren(XMLFragment child)

      Removes the children.
      Parameters:
        `child` - the child
      Returns:
        true, if successful

    - #### getAttributes

          public java.util.Set<XMLAttribute> getAttributes()

      Gets the attributes.
      Returns:
        the attributes

    - #### addAttribute

          public boolean addAttribute(XMLAttribute att)

      Adds the attribute.
      Parameters:
        `att` - the att
      Returns:
        true, if successful

    - #### removeAttribute

          public boolean removeAttribute(XMLAttribute att)

      Removes the attribute.
      Parameters:
        `att` - the att
      Returns:
        true, if successful

    - #### getNamespaces

          public java.util.Collection<Namespace> getNamespaces()

      Gets the namespaces.
      Returns:
        the namespaces

    - #### setNamespaces

          public void setNamespaces(java.util.Collection<Namespace> namespaces)

      Sets the namespaces.
      Parameters:
        `namespaces` - the namespaces to set

    - #### hashCode

          public int hashCode()

      This is the java hashCode method.
      Overrides:
        `hashCode` in class `XMLNode`
      Returns:
        int

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `XMLNode`

    - #### setHash

          public void setHash(java.lang.Integer value)

      Method used by hibernate to set the value.
      Parameters:
        `value` - the new hash