com.phasmidsoftware.xmldoc.xml
Members list
Type members
Classlikes
Object to manage translation of a name to a Seq of names.
Object to manage translation of a name to a Seq of names.
CONSIDER removing this altogether because there is another mechanism (Feature.multiExtractor) which does something similar.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ChildNames.type
Trait to define the behavior of an extractor (parser) that takes an XML Node and return Try[T] where T is the underlying type of the Extractor.
Trait to define the behavior of an extractor (parser) that takes an XML Node and return Try[T] where T is the underlying type of the Extractor.
Type parameters
- T
-
the type to be constructed.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object charSequenceExtractorclass SubclassExtractor[T]
- Self type
-
Extractor[T]
Trait which defines many useful Extractors, where the result is an instance of Extractor[T] or MultiExtractor[T].
Trait which defines many useful Extractors, where the result is an instance of Extractor[T] or MultiExtractor[T].
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Textobject AbstractViewobject AbstractViewDataobject Aliasobject Altitudeobject AltitudeModeobject AltitudeModeEnumobject AxisScaleobject BalloonStyleobject BgColorobject Cameraobject Colorobject ColorModeobject ColorModeEnumobject ColorStyleobject ColorStyleDataobject Containerobject ContainerDataobject Coordinatesobject Dataobject DisplayModeobject DisplayModeEnumobject Documentobject DrawOrderobject ExtendedDataobject Extrudeobject Featureobject FeatureDataobject Fillobject FlyToViewobject Folderobject Geometryobject GeometryDataobject GroundOverlayobject Headingobject HotSpotobject Iconobject IconStyleobject ImagePyramidobject InnerBoundaryIsobject ItemIconobject ItemIconModeEnumobject KMLobject Keyobject KmlDataobject LabelStyleobject LatLonBoxobject Latitudeobject LineStringobject LineStyleobject LinearRingobject Linkobject ListItemTypeobject ListItemTypeEnumobject ListStyleobject Locationobject Longitudeobject LookAtobject Modelobject ModelScaleobject MultiGeometryobject NetworkLinkobject Openobject Orientationobject OuterBoundaryIsobject Outlineobject Overlayobject OverlayDataobject OverlayXYobject Pairobject PhotoOverlayobject Placemarkobject Pointobject PolyStyleobject Polygonobject Rangeobject RefreshIntervalobject RefreshModeobject RefreshModeEnumobject RefreshVisibilityobject ResourceMapobject Rollobject Rotationobject RotationXYobject Scaleobject SchemaDataobject ScreenOverlayobject ScreenXYobject Shapeobject ShapeEnumobject SimpleDataobject Sizeobject Stateobject Styleobject StyleMapobject StyleSelectorobject StyleSelectorDataobject StyleStateEnumobject StyleURLobject SubStyleobject SubStyleDataobject Tessellateobject TextColorobject Tiltobject UnitsEnumobject ViewBoundScaleobject ViewRefreshEnumobject ViewRefreshModeobject ViewRefreshTimeobject ViewVolumeobject Visibilityobject Widthobject ExtractorsShow all
Companion object to Extractors.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericContentclass Objecttrait Matchableclass AnyShow all
A fully generic representation of XML content: used for anything that doesn't have (or doesn't need) a specialist type. GenericElement carries a tag, its attributes, and its children — any of which may themselves be unmodeled elements, or text.
A fully generic representation of XML content: used for anything that doesn't have (or doesn't need) a specialist type. GenericElement carries a tag, its attributes, and its children — any of which may themselves be unmodeled elements, or text.
The "mixing" of specialist and generic content happens one level up, in whatever container type models a specific element (e.g. a Story's content might be Seq[Either[ParagraphStyleRange, GenericElement]]) — GenericElement itself doesn't know or care whether its parent is specialist or generic.
fromNode/toXmlString are hand-written rather than built from the Extractor/Renderer combinators (extractor1...extractor7, renderer1...renderer7): those all assume a fixed, known number of fields, each mapped by name to one specific attribute or child — a "capture whatever's left over" field, of unbounded/unnamed size, isn't something they can express (the parallel is a fixed-arity method versus a varargs method). That said, GenericElement still has ordinary Extractor[GenericElement]/Renderer[GenericElement] instances below, delegating to fromElem/toXmlString — these let GenericElement be used as a normal field type within an otherwise-specialist extractorN/rendererN, for a specific, named field that's deliberately left generic (as opposed to modeling an unbounded remainder, which these instances don't help with).
NOTE: scala.xml.Comment and scala.xml.EntityRef nodes are not treated specially and fall through to GenericText via their .text value, which loses their distinct node type (a comment would round-trip as plain escaped text, not a comment) — this is judged an acceptable gap because InDesign-generated IDML content does not appear to contain either. scala.xml.PCData (CDATA sections) and scala.xml.Text are handled properly.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericContentclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GenericElement.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericContentclass Objecttrait Matchableclass AnyShow all
Companion object to MultiExtractor.
Companion object to MultiExtractor.
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MultiExtractor.type
Trait to define the behavior of an iterable type which can be constructed from an XML NodeSeq.
Trait to define the behavior of an iterable type which can be constructed from an XML NodeSeq.
Type parameters
- T
-
the (iterable) type to be constructed.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class MultiExtractorBase[P]object BooleanMultiExtractorobject DoubleMultiExtractorobject IntMultiExtractorobject LongMultiExtractor
Companion object for the MultiExtractorBase class. This object provides predefined ranges that can be used when working with extractors or other numerical validations.
Companion object for the MultiExtractorBase class. This object provides predefined ranges that can be used when working with extractors or other numerical validations.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MultiExtractorBase.type
MultiExtractorBase class to deal with minimum and maximum numbers of elements. This is not used for situations where different subtypes are grouped together (for example, Folder can contain any number of "Features," which can be of type Container, Document, Folder, or Placemark.)
MultiExtractorBase class to deal with minimum and maximum numbers of elements. This is not used for situations where different subtypes are grouped together (for example, Folder can contain any number of "Features," which can be of type Container, Document, Folder, or Placemark.)
Type parameters
- P
-
element type of the MultiExtractor to be returned. requires implicit evidence of Extractor[P].
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object BooleanMultiExtractorobject DoubleMultiExtractorobject IntMultiExtractorobject LongMultiExtractor
Trait to allow for functions to have names. A function, for example T=>R, can simply extend NamedFunction[T=>R] and toString will show the name.
Trait to allow for functions to have names. A function, for example T=>R, can simply extend NamedFunction[T=>R] and toString will show the name.
The name is held as a var. It is updated by the ^^ method.
CONSIDER having a method which adds to the name but doesn't replace it.
Type parameters
- E
-
the type of the function to be named.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Renderer[T]trait Extractor[T]object charSequenceExtractorclass SubclassExtractor[T]trait MultiExtractor[T]class MultiExtractorBase[P]object BooleanMultiExtractorobject DoubleMultiExtractorobject IntMultiExtractorobject LongMultiExtractorShow all
The NamedFunction object provides utilities for working with instances of the NamedFunction trait, including methods to assert and combine named function instances.
The NamedFunction object provides utilities for working with instances of the NamedFunction trait, including methods to assert and combine named function instances.
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
NamedFunction.type
Object NodeParser provides a functionality to parse strings into integers using the JavaTokenParsers. In particular, these parsers do not "see" white space. This object leverages the built-in parser combinators to interpret and transform input data.
Object NodeParser provides a functionality to parse strings into integers using the JavaTokenParsers. In particular, these parsers do not "see" white space. This object leverages the built-in parser combinators to interpret and transform input data.
Attributes
- Supertypes
-
trait JavaTokenParserstrait RegexParserstrait Parsersclass Objecttrait Matchableclass AnyShow all
- Self type
-
NodeParser.type
The Plural object is a parser utility extending JavaTokenParsers to analyze a given string and determine its plural or singular nature based on specific patterns.
The Plural object is a parser utility extending JavaTokenParsers to analyze a given string and determine its plural or singular nature based on specific patterns.
It provides the following primary functionality:
- The
unapplymethod evaluates if a string represents a plural form. It attempts to parse the input as both singular (that ends withs) and plural in reverse. - Definitions of multiple helper
Parsermethods to define the behavior for detecting specific plural or singular cases: singularEndsInS: Identifies certain patterns of singular words that end ins.plural: Consists of combined patterns (plural1,plural2,endsInS, or fails a match).plural1,plural2: Encodes specific reverse transformations for certain plural endings.endsInS: Matches plural strings ending insfollowed by a root word.root: Matches a generic alphanumeric word boundary.
The parsing logic uses compositional and pattern-matching techniques to identify and reverse strings as needed.
Attributes
- Supertypes
-
trait JavaTokenParserstrait RegexParserstrait Parsersclass Objecttrait Matchableclass AnyShow all
- Self type
-
Plural.type
Implicit class to make dealing with Nodes a bit easier.
Implicit class to make dealing with Nodes a bit easier.
Value parameters
- node
-
a Node.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Class which extends an Extractor of Seq[T].
Class which extends an Extractor of Seq[T].
NOTE: used by subclassExtractor1 method (itself unused).
Type parameters
- T
-
the type to be constructed.
Value parameters
- labels
-
a set of labels (tags)
- tsm
-
an (implicit)
MultiExtractorofSeq[T].
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Trait which extends a function of type String => Extractor[T]. When the apply method is invoked with a particular label, an appropriate Extractor[T] is returned.
Trait which extends a function of type String => Extractor[T]. When the apply method is invoked with a particular label, an appropriate Extractor[T] is returned.
CONSIDER renaming this because it isn't an extractor, but a function which creates an extractor from a String.
Type parameters
- T
-
the underlying type of the result of invoking apply. T may be an Iterable type.
Attributes
- Supertypes
- Known subtypes
-
trait TagToSequenceExtractorFunc[T]
Trait which extends TagToExtractorFunc for an underlying sequence type.
Trait which extends TagToExtractorFunc for an underlying sequence type.
Type parameters
- T
-
the underlying type of the resulting sequence when invoking apply.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Utility for reading the contents of a zip archive (such as an IDML package) in memory, without extracting it to disk. This is deliberately format-agnostic: it knows nothing about IDML's internal structure, only how to list and read the entries of a zip file.
Utility for reading the contents of a zip archive (such as an IDML package) in memory, without extracting it to disk. This is deliberately format-agnostic: it knows nothing about IDML's internal structure, only how to list and read the entries of a zip file.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Zip.type