Class PassthroughIdentifier

    • Constructor Detail

      • PassthroughIdentifier

        public PassthroughIdentifier​(String identifier)
    • Method Detail

      • getIdentifier

        public String getIdentifier()
        Description copied from interface: StructureIdentifier
        Get the String form of this identifier. It is recommended that the #toString() method also return the identifier, for consistency during serialization.
        Specified by:
        getIdentifier in interface StructureIdentifier
        Returns:
        The String form of this identifier
      • toCanonical

        public SubstructureIdentifier toCanonical()
        Description copied from interface: StructureIdentifier
        Convert to a canonical SubstructureIdentifier.

        This allows all domains to be converted to a standard format String.

        Specified by:
        toCanonical in interface StructureIdentifier
        Returns:
        A SubstructureIdentifier without ranges (e.g. including all residues)
      • reduce

        public Structure reduce​(Structure input)
                         throws StructureException
        Description copied from interface: StructureIdentifier
        Takes a complete structure as input and reduces it to the substructure represented by this StructureIdentifier.

        The returned structure may be a shallow copy of the input, with shared Chains, Residues, etc.

        Specified by:
        reduce in interface StructureIdentifier
        Parameters:
        input - A full structure, e.g. as loaded from the PDB. The structure ID should match that returned by getPdbId(), if applicable.
        Returns:
        Throws:
        StructureException
        See Also:
        StructureTools#getReducedStructure(Structure, String)