personName is defined as a String parameter.
将个人姓名定义为字符串参数。
The PersonName class is not useful without a person to relate it to.
如果没有一个person与之关联,PersonName类毫无用处。
That information consists of a name, which is defined as a "personname" structure, which includes information such as given, middle, family, prefix, and so on.
信息中包含定义为“personname”结构的姓名,其中又包括诸如名、中名、姓氏、称谓等信息。
In the example case study, I use composition to represent the Person-PersonName relationship and simple UML associations to relate the rest of the classes to each other.
在这个示例案例研究中,我使用复合来表示Person -PersonName关系,用简单的UML关联来使这些类的其余部分互相相关。
For instance, if the person's given, family, and other names were to be encapsulated in a PersonName object, you would need to modify all your code to accommodate the change.
例如,如果某人的教名、姓氏和其他名字被封装到PersonName对象中,则需要修改所有代码以适应更改。
For example, you could define a Price element that is always a floating-point number or a PersonName element that has FirstName and LastName sub-elements that are both strings.
例如,可以定义始终是浮点数的Price元素或具有字符串子元素FirstName和LastName的PersonName元素。
For example, you could define a Price element that is always a floating-point number or a PersonName element that has FirstName and LastName sub-elements that are both strings.
例如,可以定义始终是浮点数的Price元素或具有字符串子元素FirstName和LastName的PersonName元素。
应用推荐