KIWIXMLValidator Info


Public methods

Private methods


__checkArchiveUnique

Check that a specified archive is unique, i.e. specified only once per architecture per section

Defined on line: 152

Called in

__checkBootSpecPresent

Check that the boot attribute is set for types that require an initrd.

Defined on line: 183

Called in

__checkConainerSpec

Check that the container attribute is set and has a valid name

Defined on line: 218

Called in

__checkDefaultProfSetting

Make sure only one profile is marked as default.

Defined on line: 251

Called in

__checkDefaultTypeSetting

Check that only one type is marked as primary per profile

Defined on line: 322

Called in

__checkDeletePackNoPatNoTar

A section may not specify patterns or archives. We do not support deletion of archives and the underlying package management systems do not support the deletion of patterns.

Defined on line: 279

Called in

__checkDisplaynameValid

The displayname attribute of the image may not contain spaces

Defined on line: 353

Called in

__checkEC2IsFsysType

When building an EC2 image we expect the type to be a file system image.

Defined on line: 379

Called in

__checkEC2Regions

If a region is specified for an EC2 image creation it must only be specified once.

Defined on line: 413

Called in

__checkFilesysSpec

It is necessary to specify the filesystem attribute for certain image types. Make sure the attribute is specified when required.

Defined on line: 460

Called in

__checkGroupSettingsConsistent

Check that the group seetings are consistent across all elements A group may only be specified with one ID and ID may not be used twice

Defined on line: 493

Called in

__checkHttpsCredentialsConsistent

username and password attributes for all repositories configured as https: must have the same value. Any repository that has a username attribute must also have a password attribute.

Defined on line: 531

Called in

__checkInstallVerifyAction

Check that the install verification settings do not conflict

Defined on line: 593

Called in

__checkNetInterfaceMACUnique

Check that the interface name used is unique within one definition.

Defined on line: 630

Called in

__checkNetInterfaceNameUnique

Check that the interface name used is unique within one definition.

Defined on line: 661

Called in

__checkNoBootVolume

Check that the boot directory, i.e. /boot is not specified as a logical volume.

Defined on line: 690

Called in

__checkNoIDSystemGroups

Check that no group ID is specified if the specieife group name is part of the system groups.

Defined on line: 718

Called in

__checkPackageUnique

Check that a specified package is unique, i.e. specified only once per architecture per section

Defined on line: 803

Called in

__checkPatternTypeAttrConsistent

Check that the values for the patternType attribute do not conflict. If all sections use profiles attributes the patternType attribute value may be different for all sections. However, if a default section exists, i.e. no profiles attribute is used, then all patternType attribute values must be the same as the value set for the default profile.

Defined on line: 866

Called in

__checkPatternTypeAttrUse

The PatternType attribute may only be used for image and bootstrap packages. Check that this is set appropriately.

Defined on line: 964

Called in

__checkPatternUnique

Check that a specified namedCollection is unique, i.e. specified only once per architecture per section

Defined on line: 834

Called in

__checkPostDumpAction

Check that only one post dump action for the OEM image type is set, spare oem-bootwait It is reasonable to use oem-bootwait with other actions such as shutdown or reboot.

Defined on line: 991

Called in

__checkPreferLicenseUnique

Check that the prefer-license attribute is set to true on only one repository per profile.

Defined on line: 1072

Called in

__checkPreferencesDefinition

Check that only one definition exists without use of the profiles attribute.

Defined on line: 1032

Called in

__checkProfileNames

Check that a profile name does not contain whitespace, and is not named "all". "all" has a special meaning in Kiwi :(

Defined on line: 1130

Called in

__checkReferencedProfDefined

Check that any reference of profiles has a defined target, i.e. the profile must be defined

Defined on line: 1161

Called in

__checkRevision

Check that the current revision meets the minimum requirement

Defined on line: 1204

Called in

__checkSysdiskNameNoWhitespace

Check that the name attribute of the element does not contain white space

Defined on line: 1230

Called in

__checkTypeConfigConsist

Check that a specified <*config> section is consistent with the specified image type.

Defined on line: 1260

Called in

__checkTypePckgsTypeExists

Check that the type for which packages are specified exists for each profile

Defined on line: 1330

Called in

__checkTypeUnique

Check that only one type with image="myName" exists per

Defined on line: 1410

Called in

__checkUserDataConsistent

Missing

Defined on line: 1441

Called in

__checkVersionDefinition

Check image version format This check should be implemented in the schema but there is a bug in libxml2 that prevents proper type validation for elements

Defined on line: 1543

Called in

__checkVolAttrsConsist

Check that the attributes size and freespace are not used in combination on the element.

Defined on line: 1574

Called in

__checkVolNameNoWhitespace

Check that the name attribute of the element does not contain white space

Defined on line: 1603

Called in

__checkVolNameUnique

Check that the given volume name is unique across all volumes in a systemdisk configuration.

Defined on line: 1628

Called in

__getXMLDocTree

Generate the XML Document tree for perl

Defined on line: 1657

Called in

__loadControlfile

Load the XML file and pass it to the XSLT stylesheet processor for internal version conversion

Defined on line: 1681

Called in

__uniqueInPackages

Loop through all packages sections and check that specified names are unique for the given child element.

Defined on line: 1712

Called in

__validateConsistency

Validate XML data that cannot be validated through Schema and structure validation. This includes conditional presence of elements and attributes as well as certain values. Note that any checks need to work off $this->{systemTree}. The consistency check occurs prior to this object being porpulated with XML data. This allows us to basically have no error checking in any code that populates this object from XML data.

Defined on line: 1749

Called in

__validateXML

Validate the control file for syntactic and structural correctness according to current schema

Defined on line: 1874

Called in

getDOM

Return the DOM for the configuration file.

Defined on line: 111

Called in

new

Create the validator object.

Defined on line: 38

Called in

validate

Validate the XML for syntactic correctness and consistency

Defined on line: 122

Called in