Variable: createBimSnippet
const createBimSnippet: (attributes: {
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}, content:
| BimSnippet_Element$Children
| (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| Reference_2
| ReferenceSchema)[]) => BimSnippet_Element & {
all: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => BimSnippet_Element[];
descendants: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => BimSnippet_Element[];
elementName: string;
from: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) =>
| BimSnippet_Element
| undefined;
is: (element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => element is BimSnippet_Element;
namespaceURI: string;
} & {
defaults: Partial<{
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}>;
read(element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}):
| {
attributes: {
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
Reference: | Reference_2
| undefined;
ReferenceSchema: | ReferenceSchema
| undefined;
};
}
| undefined;
update(element: BimSnippet_Element, attributes: Partial<E["attributes"]>, changes: Partial<F>): BimSnippet_Element;
};
Create/read the XML BimSnippet element. Named children follow XSD order and occurrence constraints.
Type Declaration
all
all: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => BimSnippet_Element[];
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
descendants
descendants: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => BimSnippet_Element[];
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
elementName
elementName: string = definition.name;
from
from: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) =>
| BimSnippet_Element
| undefined;
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
| BimSnippet_Element
| undefined
is
is: (element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => element is BimSnippet_Element;
Parameters
element?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
element is BimSnippet_Element
namespaceURI
namespaceURI: string = definition.namespaceURI;
defaults
defaults: Partial<{
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}>;
read()
read(element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}):
| {
attributes: {
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
Reference: | Reference_2
| undefined;
ReferenceSchema: | ReferenceSchema
| undefined;
};
}
| undefined;
Parameters
element?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
| {
attributes: {
IsExternal?: string;
SnippetType: string;
} & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
Reference: | Reference_2
| undefined;
ReferenceSchema: | ReferenceSchema
| undefined;
};
}
| undefined
update()
update(
element: BimSnippet_Element,
attributes: Partial<E["attributes"]>,
changes: Partial<F>
): BimSnippet_Element;
Parameters
element
attributes
Partial<E["attributes"]>
changes
Partial<F>