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: 159

Called in

__checkBootSpecPresent

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

Defined on line: 190

Called in

__checkContainerSpec

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

Defined on line: 225

Called in

__checkDefaultProfSetting

Make sure only one profile is marked as default.

Defined on line: 258

Called in

__checkDefaultTypeSetting

Check that only one type is marked as primary per profile

Defined on line: 329

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: 286

Called in

__checkDisplaynameValid

The displayname attribute of the image may not contain spaces

Defined on line: 360

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: 413

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: 446

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: 484

Called in

__checkInstallVerifyAction

Check that the install verification settings do not conflict

Defined on line: 546

Called in

__checkIsFormatEC2

We changed the EC2 build in an incompatible way we need to allert users if they still have the old setup.

Defined on line: 386

Called in

__checkNetInterfaceMACUnique

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

Defined on line: 583

Called in

__checkNetInterfaceNameUnique

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

Defined on line: 614

Called in

__checkNoBootVolume

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

Defined on line: 643

Called in

__checkNoIDSystemGroups

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

Defined on line: 671

Called in

__checkOVFTypeSet

If the format attribute on the is set to ovf the user must specify the ovftype in the definition

Defined on line: 756

Called in

__checkPackageUnique

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

Defined on line: 787

Called in

__checkPatternTypeAttrConsistent

Check that the values for the patternType attribute do not conflict. This means patternTypes set for profiles must be uniq for this profile. This also applies to sections without a profile which are handled as __standard in this check. The getInstallOption function from KIWIXML will use the highest prio patternType according to the selected profiles.

Defined on line: 850

Called in

__checkPatternTypeAttrUse

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

Defined on line: 916

Called in

__checkPatternUnique

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

Defined on line: 818

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: 943

Called in

__checkPreferLicenseUnique

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

Defined on line: 1024

Called in

__checkPreferencesDefinition

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

Defined on line: 984

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: 1082

Called in

__checkReferencedProfDefined

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

Defined on line: 1113

Called in

__checkRevision

Check that the current revision meets the minimum requirement

Defined on line: 1156

Called in

__checkSysdiskNameNoWhitespace

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

Defined on line: 1182

Called in

__checkTypeConfigConsist

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

Defined on line: 1212

Called in

__checkTypeInstallMediaConsist

Cehck that the install media settings are consistent Valid combinations installiso="true" installstick="true" installstick="true" installiso="true" installiso="true" hybrid="true"

Defined on line: 1281

Called in

__checkTypePckgsTypeExists

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

Defined on line: 1313

Called in

__checkTypeUnique

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

Defined on line: 1393

Called in

__checkUserDataConsistent

Missing

Defined on line: 1424

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: 1526

Called in

__checkVolAttrsConsist

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

Defined on line: 1563

Called in

__checkVolNameNoWhitespace

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

Defined on line: 1592

Called in

__checkVolNameUnique

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

Defined on line: 1617

Called in

__getXMLDocTree

Generate the XML Document tree for perl

Defined on line: 1646

Called in

__loadControlfile

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

Defined on line: 1670

Called in

__uniqueInPackages

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

Defined on line: 1701

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: 1738

Called in

__validateXML

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

Defined on line: 1866

Called in

getDOM

Return the DOM for the configuration file.

Defined on line: 118

Called in

new

Create the validator object.

Defined on line: 45

Called in

validate

Validate the XML for syntactic correctness and consistency

Defined on line: 129

Called in